Click here to Skip to main content
11,920,156 members (57,617 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# SQL-Server
while making a new database in visiual studio 2010 ..i am getting this error .......

A network related or specific error occurred while establishing a connection to sql server .the server was not found or was not accessible .verfiy that the instance name is correct and that sql server is configured to allow remote connections (error 26: error locating server/instance specified))
please tell me the solution
thanks in avance
Posted 29-Mar-13 5:37am
RedDK 29-Mar-13 14:08pm
Try connecting. What I mean is, connect to whatever is there in the Server Browser. If you can use anything there, start your developement on that.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Make sure Sql Server Agent Service has started in you computer .
And the user name, password, and the name of the database is correct in the connection string.

If the database is at remote location check your internet connection
okishore7 29-Mar-13 10:51am
i am getting an error if i start the sql server Agent(error:1068the dependency service or group failed to start) agent and my basebase is local ...

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

  Print Answers RSS
0 OriginalGriff 455
1 phil.o 170
2 CPallini 150
4 F-ES Sitecore 130
0 OriginalGriff 6,778
1 KrunalRohit 4,495
2 Sergey Alexandrovich Kryukov 3,153
3 George Jonsson 2,810
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web01 | 2.8.151120.1 | Last Updated 29 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100