Solved

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

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

790 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