boot Discovery this morning, open SQL Server 2008 for SQL Server Management Studio, enter the password discovery for SA and cannot Log in to the database? The following error is prompted:
"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or could not be accessed. Please test Verify that the example name is correct and that SQL Server is configured to allow remote connections. (provider: Named pipe provider, error:40-no way to open a connection to SQL Server) " seeing someone on the internet says that using localhost to replace the machine with the server (local), but it still doesn't work, and then resets the IP toto the. Specific as follows:1. Open SQL Server Management configurator or enter at the command line: Sqlservermanager10.msc2. Click on the MSSQLSERVER protocol and select the TCP/IP protocol on the right page . 3, right click on the TCP/IP protocol, select "Properties", you need to modify the port address of the connection database 4, jump out of the dialog box, there are many TCP/IP ports, find "IP3", change the IP address for their own computer's IP address (or 127.0.0.1) on the TCP port to add 1433, and then select Start 5, "IPALL" all the ports changed to "1433" 6. Restart the service
7, through the above 1-6 steps to set up a good port, reopen SQL Server Management Studio, the server name input: (local) or 127.0.0.1, you can log into the database.
A network-related or instance-specific error occurred while establishing a connection to SQL Server.