Hi Kevin,
Your problem doesn't ring a bell. Server Explorer shouldn't be persisting data about what database it was last connected to. When ever I try to expand the MSDE Node on the local machine
the Server Explored doesn't navigate past the server leaf. Maybe I am missing something so if you could provide more detail about how you are navigating to MSDE via SE that would be
helpful.
<My Machine>
|_ SQL Servers
|_<My Machine>
If we are storing the DB name it is probably in the registry. Try searching the registry for the DB Name and see if it comes up. Let me know what you find.
Cameron Slade
Test Manager Visual Studio Data
--------------------
>Thread-Topic: Server Explorer failling to log in to (local) DB
>thread-index: AcWc5/uMWQWDLeljQNqzN/TB7UTJDg==
[quoted text clipped - 42 lines]
>> >
>> > What about developers who only have MSDE?
Cameron Slade
Microsoft VSData Team
http://blogs.msdn.com/vsdata

Signature
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.
kevin - 10 Aug 2005 18:16 GMT
Cameron thanks for your time,
The series of steps that I took
1. Create database DB1
2. From VS.NET Server Explorer create a dataconnecton to DB1
3. Realize that I mispelled the name of DB1: DROP DB1 and try again
4. RETURN TO VS.NET, REFRESH SERVER EXPLORER AND EXPAND Servers - MyMachine
-Sql Servers -MyMachine
At this point I get a SQL SERVER Login dialog box and regardless of the
password/login combination or Integrated Windows Security, the following
message box opens
Title: Microsoft Development Environment
Text: Cannot open database requested in login 'DB1'. Login fails.
"Obviously, you ninny," you say, "You still have a connection defined for a
non-existant database!"
5. Delete the Data Connection for DB1 and try and expand the Servers tree
again. Same error.
6. Close and reopen VS.Net...same error.
My solution was to create a DB named db1 (no tables)
> Hi Kevin,
>
[quoted text clipped - 61 lines]
> Microsoft VSData Team
> http://blogs.msdn.com/vsdata
kevin - 10 Aug 2005 18:20 GMT
Cameron,
I forgot one thing.
The Sql Server Login box has DB1 in the Database field.
Thanks Kevin
kevin - 10 Aug 2005 18:27 GMT
I may stand corrected!
I don't think that I ever actually deleted The DB1 Data Connection (step 6
in my response).
I just did that and after restarting VS.NET, problem solved.
I also found no referance to DB1 in the registry.
Cameron, your good!