I'm trying to find the default location for all my local databases using sql server. Does anyone know?
Info here.
For you it should be \Program Files\Microsoft SQL Server\MSSQL.90\MSSQL\Data\
try this exec dbo.sp_helpdb <db_name>;
if all you need is the files, use short one as use <db_name> exec sys.sp_helpfile;
For SQL Server 2005 / 2008 it should be somewhere like C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA.
Search C:\Program Files\Microsoft SQL Server for .mdf files.
do you mean the location of the .mdf and .ldf files? for sql server 2008 on my machine those default to:
C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With