Solved

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

Posted on 2013-02-06
2
797 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 500 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 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