Wednesday, February 27, 2013

find information about databases

Sp_helpdb

SELECT * FROM sys.master_files

SELECT * FROM sys.database_files
SELECT name, recovery_model_desc FROM sys.databases
where recovery_model=1

No comments:

Post a Comment

https://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context...