Genius DM

SQL SERVER ERROR 18456 본문

SQLServer

SQL SERVER ERROR 18456

Damon Jung 2017. 11. 24. 10:27

MSSQL 서버 에러 18456


일단 이 에러가 발생하면 로그인이 안된다. 거의 이 에러를 겪는 경우는 이제 막 SQLServer 를 설치 한 후 로그인을 시도 할 경우일 확률이 상당히 높다. 이 에러는 SQLServer Authentication 이 Turnoff 되어있을 때 발생한다. 자세한 에러 내용은 https://docs.microsoft.com/en-us/sql/relational-databases/errors-events/mssqlserver-18456-database-engine-error MSDN 에서 확인하자.


해결 방법

    1. 서버 우클릭 -> 속성
    2. 보안 탭으로 이동
    3. 서버 인증 메뉴에서 SQLServer 와 윈도우 인증 사용으로 변경
    4. OK 누른 후 SQLService 재시작

그러니까 결론은, 윈도우 인증만 활성화 된 상태였기 때문에 SQLServer 계정으로 접근이 안 된 것이다. 만약 서버 설치하고 윈도우 호스트네임 기반으로만 로그인했다면, 이 에러에 대한 검색을 할 필요도 없었을 것이다. 아무튼, SQLServer 인증 모드까지 활성화 시켜주면 잘 될 것이다.




















MSSQL Server Error 18456


First of all, you just can't connect to your SQLServer if this error occurred. It's highly likely that you've just installed SQLServer in your local machine if you encounter this error. This error happens because you haven't turned on SQLServer Authentication mode yet. See the details of this error at https://docs.microsoft.com/en-us/sql/relational-databases/errors-events/mssqlserver-18456-database-engine-error


Steps

  1. Right click on a database server and click properties.
  2. And move to security tab
  3. Server Authentication, 
  4. Select SQLServer and Windows Authentication mode.

Click ok and restart SQL Services. Don't just close SSMS. It shall work fine.
































'SQLServer' 카테고리의 다른 글

Slow in the Application, Fast in SSMS? Part 2  (0) 2018.07.25
Slow in the Application, Fast in SSMS? Part 1  (0) 2018.07.19
Comments