Last active
April 22, 2022 14:03
-
-
Save JayHollingum/5579dfa7830136a1c785c1514b7c6e9f to your computer and use it in GitHub Desktop.
SQL Server DB List - State and Recovery Mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use [master] | |
select | |
db.name, | |
db.state_desc, | |
db.recovery_model_desc | |
from | |
sys.databases db | |
where | |
db.name not in ('master','tempdb','model','msdb') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment