Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Script to obtain a database Files view
Message
 
To
30/03/2012 15:14:34
General information
Forum:
Microsoft SQL Server
Category:
Scripting
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01539866
Message ID:
01539873
Views:
32
This message has been marked as a message which has helped to the initial question of the thread.
>I need a script which will provide me the same layout that we obtain when we go in Database\Properties\Files. This is where we see the location of the .mdf, all the .ndf, if more than one, and the .ldf. I thought that would be nice to have, as on a particular server, this would save a lot of time for several persons to have to go in SSMS to get that. Is there anyone who already built this script who would like to share it or some of it, or ideas behind that?
SELECT * FROM sys.master_files
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform