Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
CSS
TITLE: Connect to Server
------------------------------

Cannot connect to .\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)

help me this instance were working but now it is not working please help

<big>it is related to sQL 2008 R2</big>
Posted

check whether sql server system is on. if yes, ping the sql server system in command prompt ping servername] and check replies are coming successfully.


regards,
Prakash.T
 
Share this answer
 
Comments
Muhamad Faizan Khan 26-Feb-13 2:47am    
i ping like

ping sqlexpress

but rplied request could not find host sqlexpress.check the name and try again;(
1) Make sure the SQL service is running before trying to connect.

2) Make sure the protocols you want are enabled : http://msdn.microsoft.com/en-us/library/ms191294.aspx[^]

3) Also if you are trying to connect from another machine you should be using the IP address of the SQL instance instead of "." e.g. 192.168.1.10\sqlexpress.
 
Share this answer
 
Comments
Muhamad Faizan Khan 26-Feb-13 2:49am    
yes tcp/ip and named pipes are enable but not working. and i am not trying to connect from another machine
Muhamad Faizan Khan 26-Feb-13 3:25am    
in sql 2008 r2
sql configuration management-> sql server services here showing "remote procedure call fialed" please help
what to do
while sql instance name .\sqlexpress also not working not login please help
Mehdi Gholam 26-Feb-13 3:52am    
Restart your machine, if does not work remove and reinstall.

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