Jun 12, 2003 #1 JayKusch MIS Oct 30, 2001 3,199 US Is there a command in T-SQL that will set the recovery mode of a database? I have over 2000 DB remotely that I need to set the recovery mode for and do not wish to do it manually. Thanks J. Kusch
Is there a command in T-SQL that will set the recovery mode of a database? I have over 2000 DB remotely that I need to set the recovery mode for and do not wish to do it manually. Thanks J. Kusch
Jun 12, 2003 1 #2 ClaireHCM IS-IT--Management Mar 26, 2003 772 US ALTER DATABASE database_name SET RECOVERY [FULL | BULK_LOGGED | SIMPLE] You can first query out result like the following.According to the databases which model you want them to be.Them run them at one time! ALTER DATABASE MyDB1 SET RECOVERY FULL Go ALTER DATABASE MyDB2 SET RECOVERY FULL Go ALTER DATABASE MyDB1 SET RECOVERY FULL Go Upvote 0 Downvote
ALTER DATABASE database_name SET RECOVERY [FULL | BULK_LOGGED | SIMPLE] You can first query out result like the following.According to the databases which model you want them to be.Them run them at one time! ALTER DATABASE MyDB1 SET RECOVERY FULL Go ALTER DATABASE MyDB2 SET RECOVERY FULL Go ALTER DATABASE MyDB1 SET RECOVERY FULL Go
Jun 12, 2003 Thread starter #3 JayKusch MIS Oct 30, 2001 3,199 US Thanks! Thanks J. Kusch Upvote 0 Downvote