Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / July 2008

Tip: Looking for answers? Try searching our database.

Newbie - What's the default location of my database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jonathan - 30 Jun 2008 15:25 GMT
I had an issue with a new Dell laptop running Vista and Dell says I have to
do an Vista re-install. About a month ago I downloaded SQL Server Express
2005 and have been working on a local database. The thing is that Vista
hasn't been allowing me to run Explorer.exe so I haven't so far succeeded in
opening SQL Server Express to see where I stored the database I was working
on in order to copy it from the hard drive to another hard drive.

I am able to open a browse window using Windows Task Manager to start a new
task.

I have been looking through a lot of folders trying to find the database
file or files.

What would it's extension be?

Where would it likely be installed by default?

If I do a Vista re-install, re-download SQL Express, how can I restore the
database?

TIA
Aaron Bertrand [SQL Server MVP] - 30 Jun 2008 15:38 GMT
> I have been looking through a lot of folders trying to find the database
> file or files.
>
> What would it's extension be?

*.mdf, *.ndf, *.ldf

> Where would it likely be installed by default?

Somewhere under:

C:\Program Files\Microsoft SQL Server\

> If I do a Vista re-install, re-download SQL Express, how can I restore the
> database?

You should back it up first, before you perform a reinstall.  Can you access
the database using a query tool of any kind?  How have you been working with
the database up until now?  Are you using SSMS Express, or Visual Studio,
or...?
Adi - 30 Jun 2008 15:39 GMT
> I had an issue with a new Dell laptop running Vista and Dell says I have to
> do an Vista re-install. About a month ago I downloaded SQL Server Express
[quoted text clipped - 17 lines]
>
> TIA

Search for files with the extension mdf or ndf or ldf.

Adi
Alex Wilson - 01 Jul 2008 11:22 GMT
If you can open a cmd box, you can use dir to locate the files

start | run | cmd.exe

then
cd\
dir C:\*.mdf /s

that will recursively search your C drive for any in any folder with
the extension MDF.
you will also need to look for .ldf and .ndf (assuming you used the
default extensions)

Alex R. Wilson
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.