/*-- Get all databases' mdf and ldf info, including logical names --*/ SELECT * FROM SYS.MASTER_FILES /*-- Get mdf info (more detail) -- */ SELECT * FROM SYS.DATABASES /*-- Get mdf info (less detail) --*/ SELECT * FROM SYS.SYSDATABASES /*-- Get database info -- */ EXEC sp_helpdb /*-- Get database info (mdf and ldf), including logical names --*/ EXEC sp_helpdb @dbname = N'Northwind'
No comments:
Post a Comment