December 11, 2016 at 6:45 am
what is command to print current ldf and mdf file names used by all respective databases in my SQL Server 2008 R2 DB ?
December 11, 2016 at 7:12 am
spectra (12/11/2016)
what is command to print current ldf and mdf file names used by all respective databases in my SQL Server 2008 R2 DB ?
Databases are on an instance. This will query the files for all databases on the instance:
SELECT name, fileid, filename
FROM master.sys.sysaltfiles
ORDER BY name;
December 11, 2016 at 7:17 am
Eirikur's answer to your other post works too. http://www.sqlservercentral.com/Forums/Topic1841899-391-1.aspx
December 11, 2016 at 8:36 pm
Thank you guys
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply