Something strange is going on. I had SQL Server (I believe 2005) installed on my machine (I say "I believe" because I installed over previous versions. See
http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/Q_22070953.html for more info). Usually when I opened up Microsoft SQL Studio 2005 and selected KMOLONEY-WS as the workstation name, it returned the database files in C:\Program Files\Microsoft SQL Server\MSSQL\Data\. I installed SQL Server Express because I was having problems using SQL Server with the "Manage Website" feature of VB2005 for an ASP.NET Web Site. Someone told me I had to install SQL Server Express to use this feature...so I did, and it worked fine.
Now, in SQL Studio 2005, when I logged in, two servers were listed. KMOLONEY-WS, and KMOLONEY-WS\SQLEXPRESS. Bringing up KMOLONEY-WS still brought up the database files in C:\Program Files\Microsoft SQL Server\MSSQL\Data\, and KMOLONEY-WS\SQLEXPRESS brought up just standard system databases. I created several new databases in KMOLONEY-WS\SQLEXPRESS, and logging into the KMOLONEY-WS\SQLEXPRESS brought up these new databases (stored in C:\Program Files\Microsoft SQL Server\MSSQL.3\Data\).
Somehow, sometime, for some reason, things changed: bringing up either KMOLONEY-WS or KMOLONEY-WS\SQLEXPRESS brings up just the new (SQLEXPRESS) databases in C:\Program Files\Microsoft SQL Server\MSSQL.3\Data\). I can see the MDF and LDF files for the older databases in C:\Program Files\Microsoft SQL Server\MSSQL ... I just can't figure out how to bring them up in SQL Server Management Studio (or OSQL, or anything). All my previous apps built on these databases fail, with the message:
Cannot open database "CupboardSQL" requested by the login. The login failed.
Login failed for user 'TTI\kmoloney'.
How do I access my old databases?!!!
Start Free Trial