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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

finding Database properties using T-SQL

Status
Not open for further replies.

iluvsushi79

Technical User
May 5, 2006
3
US
Hi,

Does anyone know how I can find, using T-SQL in SQL server 2000/2005, database property information (such as path of where each database files are residing, recovery mode, filegrowth...etc?)
I need to create a report of this and don't know where to go from here.

Thanks in advance!


 
The DATABASEPROPERTYEX function will get you some of the information (recovery mode, readonly/write status, etc.). File locations are kept in the sysfiles table in SQL 2000, and sys.database_files table in SQL 2K5.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top