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

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
Karthik_Mahalingam 29-Jan-14 0:55am    
post your connection string..
durgesh j 29-Jan-14 1:27am    
this error occurs while starting the sql server
and the connection string is
SqlConnection con = new SqlConnection(@"Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Demo_Tool;Data Source=GRAPHICS-02\SQLEXPRESS");
Karthik_Mahalingam 29-Jan-14 1:30am    
can u able to open the SQL Studio ? and run the query in server ??
durgesh j 29-Jan-14 1:32am    
No not able to open the studio that is the main issue
Karthik_Mahalingam 29-Jan-14 1:32am    
make sure that the server is running ?
check in the services

1 solution

Start SQL Server from services.msc
 
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