Click here to Skip to main content
15,560,073 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
CSS
TITLE: Connect to Server
------------------------------

Cannot connect to PC\SQLEXPRESS.

------------------------------
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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=-1&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

Posted
Comments
[no name] 4-Jul-14 15:05pm    
Yes... and? Did you check that your server is running? Did you check and see if the server is available? Did you check and see if the firewall allows connections? Did you verify that the instance name is correct? Is the server computer available on the network?
midnight_20 4-Jul-14 16:47pm    
i always used the server with same name and access it from my website it works but sometimes it show me this error even if i try to run sql server it shows me the same problem
Atyant Srivastava 5-Jul-14 2:38am    
Please check whether your Sql Server agent is running or not.
command for the same is xp_servicecontrol 'querystate', 'SQLSERVERAGENT'

1 solution

check Your connection sting first?some time mistake ; or space
 
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