Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have installed sqlserver 2008 just now and trying to connect. but iam getting the following error

Cannot connect to HEMANTH-PC.

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: 53)


in the server protocols - i have checked the tcp-ip port and set it to enable.
and named pipes to enable, and checked the instance it is running and i have added the port 1433 to the windows firewall also but still not able to connecting to the server. getting the same error please help me out. thanks in advance.
Posted
Updated 26-Jul-14 2:53am
v2

1 solution

Have you tried the simple stuff? Changes are that the Server instance name is wrong, or you have the wrong authorization type or username / password combination.
Try to connect via SSMS or the Visual Studio Server Explorer pane. When that works, you'll have a better idea what the connection string should be (VS will even give you a working string for a specific database)

If that doesn't do it, we'd need a fair amount more info as to exactly what you are toing to try to connect.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900