简体   繁体   中英

SQL server 2008 login issue

Hi I created a new login SQL server authentication in SQL server 2008, however I am unable to login with that user.

Getting an error like ,

TITLE: Connect to Server

Cannot connect to (local).


ADDITIONAL INFORMATION:

Login failed for user 'sa'. (Microsoft SQL Server, Error: 18456)

The error Login failed for user 'sa' means that connection to server was established, but server refused it under certain circumstances, such as:

  • Wrong password
  • Sql server uses only Windows Authentication (needs server restart)
  • In your Connection String you ask to connect to specified DB, which is not exists
  • sa login is Disabled or Denied to access sql engine

User Action

  1. If you are trying to connect using SQL Server Authentication, verify that SQL Server is configured in Mixed Authentication Mode.
  2. If you are trying to connect using SQL Server Authentication, verify that SQL Server login exists and that you have spelled it properly.
  3. If you are trying to connect using Windows Authentication, verify that you are properly logged into the correct domain.
  4. If your error indicates state 1, contact your SQL Server administrator.

From this article

Should this not help try troubleshooting this issue following these steps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM