Click here to Skip to main content
Rate this: bad
good
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
Comments
RedDK at 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
good
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
  Permalink  
v3
Comments
okishore7 at 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 6,803
1 Sergey Alexandrovich Kryukov 6,377
2 DamithSL 5,421
3 Manas Bhardwaj 4,841
4 Maciej Los 4,330


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 29 Mar 2013
Copyright © CodeProject, 1999-2014
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