开发者

Cannot connect to local SQL Server Express 2008 R2

开发者 https://www.devze.com 2023-03-06 09:30 出处:网络
I just installed SQL Server Express 2008 R2 and I have a problem connecting to it using the SQL Server Management Studio(locally).

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 Ser开发者_如何学编程ver, 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:

Cannot connect to local SQL Server Express 2008 R2


hope it will help you

 server name try this: (local)\SQLEXPRESS or localhost\SQLEXPRESS.

it is working.....

0

精彩评论

暂无评论...
验证码 换一张
取 消