I got error no. 26, with Sql 2005 and visual

Closed
DIVYA - Aug 27, 2010 at 01:49 AM
 Blocked Profile - Aug 27, 2010 at 02:30 AM
Hello,

I am working with Sql server 2005 and visual studio 2008 ON WINDOWS 7.
when i am trying to access the database i got an error such as :


"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) "

what can i do to solve this error. please reply ASAP.
Related:

1 response

Blocked Profile
Aug 27, 2010 at 02:30 AM
n a word, the reason that we get this error message is the client stack could not receive SSRP response UDP packet from SQL Browser. It's easy to isolate the issue. Here are the steps:
1) Make sure your server name is correct, e.g., no typo on the name.
2) Make sure your instance name is correct and there is actually such an instance on your target machine. [Update: Some application converts \\ to \. If you are not sure about your application, please try both Server\Instance and Server\\Instance in your connection string]
3) Make sure the server machine is reachable, e.g, DNS can be resolve correctly, you are able to ping the server (not always true).
4) Make sure SQL Browser service is running on the server.
5) If firewall is enabled on the server, you need to put sqlbrowser.exe and/or UDP port 1434 into exception.
0