468,119 Members | 1,915 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,119 developers. It's quick & easy.

Error Locating Server/Instances Specified (VS to SqlSvr)

I am running VS.net 2005 Express and Sql Server 2005 Express. The DB
and VS are both on the same PC.

I cannot connect to a database from within VS.

In Database Explorer I click Connect To Database to add an existing DB
to the DB Explorer.
In the dialog box I navigate to the MDF of my DB and after I click Test

Connection it takes some 20 seconds before giving the error ..."Error
Locating Server/Instances Specified" (error 26).
However I can access the DB fine using Sql Server Management Studio
Express.
I have followed the advice I got from
http://www.datamasker.com/SSE2005_NetworkCfg.htm and added c# to my
solution to read data from the DB via a SqlDataReader. This works
fine.
However I still can't get at the DB via my Database Explorer.
One link from the above URL mentions Using Visual Studio 2005 to
Connect to SQL Servers by Name but I do not get the option to connect
to a server. I only get the option to connect to a Sql Server DB file
or an Access DB file.
Have anyone any idea what I need to do to be able to see my DB in the
Database Explorer?
TIA,
dave.
----------------------------
Please post all replies to the newsgroup
Email address no longer valid
----------------------------

Jul 9 '06 #1
0 1033

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by VB Programmer | last post: by
8 posts views Thread by =?Utf-8?B?UGV0ZXI=?= | last post: by
16 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.