Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where does SQL Server store the name and location of the .ldf files?

Status
Not open for further replies.

Dev2001

Programmer
May 18, 2001
1
KW
Where does SQL Server store the name and location of the .ldf files?

The .mdf file for a database, its name and location is stored in the master database, as I found.

Thanks ahead.
 
sysdatabases in master contains the operating-system path and name for the database’s primary file.

sysfiles1 in each database contains one row for each file in a database including the name of the physical device and the full path of the file. Terry

;-) The single biggest challenge to learning SQL programming is unlearning procedural programming. -Joe Celko

SQL Article links:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top