What would the syntax of a conditional query that depends on the db status be? Basically, the equivalent of this pseudo-code?
IF [My database is in RECOVERY mode]
[DO SOME STUFF]
ELSE
[DO SOME OTHER STUFF]
Thanks for any help you can provide!
IF DATABASEPROPERTY(‘DBName’,’IsInRecovery’) = 1
Edit: Although that is deprecated use