Cannot connect to local SQL Server Express 2008 R2
I just installed SQL Server Express 2008 R2 and I have a problem connecting to it using the SQL Server Management Studio (locally).
All SQL Server services are started (SQL Server (SQLEXPRESS), SQL Server browser, also the DTC service)
When I try to connect I get the following message:
TITLE: Connect to Server
Cannot connect to (local).
ADDITIONAL INFORMATION:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)
Are you connecting to the local express instance? Try this as your server: .SQLEXPRESS
The same error can happen if your SQLEXPRESS instance is not started. To verify the service is started: - run services.msc - Look for the "SQL Server (SQLEXPRESS)" service, status should be "Started", if it is not, try to start it manually.
I had the same error and I had to enable TCP/IP protocol and set IPALL TCP Port to 1433 to resolve the issue:
链接地址: http://www.djcxy.com/p/56726.html上一篇: 未能将我的网页连接到数据库