简体   繁体   中英

asp.net Website can't connect to SQL server - login error

out of the blue i am getting intermittent error from my website saying:

A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)"}

any suggestion on what might be wrong? seems like the connection to the db can't be established but i don't understand why it would be complaining about the login process

Please try following and let me know if you find it useful.

  1. Login with windows authentication.
  2. Right click on the Instance name - Server Properties
  3. Security page
  4. Set the Server Authentication - 'SQL Server and Windows Authentication mode'
  5. Restart the SQL Service.

Then close the sqlserver and restart. It should work.

if the above steps donot work then try thebelow ones: Make sure the user is not disabled 1. Login as an Administrator into the SqL Server

  1. Expand Security/ Logins folder

  2. Right Click on the particular user and go to properties

  3. Click Status Permission: Granted

Login : Enabled

SQL configuration wizard and make sured that TCP/IP and named pipes are enabled and that they are set to priorities 1 and 2.

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