Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Script to obtain a database Files view
Message
 
À
30/03/2012 15:14:34
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Scripting
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01539866
Message ID:
01539873
Vues:
33
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform