Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SQL Server 2008 R2 - can't find .MDF and .LDF files!

Posted on 2013-02-06
2
Medium Priority
?
815 Views
Last Modified: 2013-02-06
Using SQL Server 2008 R2.
I had a local database on my Windows 7 64-bit laptop. I detached it. But, when I search on my hard drive for the MYDATABASE (database name) I should find a MYDATABASE.MDF and a MYDATABASE.LDF file, right?

Mystery! There is none. Because I have already detached it I cannot look at the path in SQL Server Management Studio. Or so I think - is there somewhere in the database management/logs where I can look to find the path? Or is there some other explanation, such as SQL 2008 R2 makes the data files 'hidden' or something?

Thanks for any help.
0
Comment
Question by:hindersaliva
2 Comments
 
LVL 5

Accepted Solution

by:
djbaum earned 2000 total points
ID: 38858898
-Open command promt as Admin (press start, type "cmd", right click it invoke as Administrator)
-type "cd \" press enter
-type "dir *.mdf /s" press enter

Hopefully your mdf will be found.
0
 

Author Comment

by:hindersaliva
ID: 38859279
Hey thanks!
It worked.

Hmm ... wonder why searching the folder missed that?
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question