Added new scripts and changes
This commit is contained in:
16
DBG - recovery pending db.sql
Normal file
16
DBG - recovery pending db.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
adapt the db name and execute each of those steps manually
|
||||
|
||||
if data corruption have occured, restoring a backup might need necessary
|
||||
*/
|
||||
return
|
||||
|
||||
ALTER DATABASE sandbox SET EMERGENCY;
|
||||
|
||||
dbcc checkdb('sandbox') WITH ALL_ERRORMSGS, NO_INFOMSGS
|
||||
|
||||
ALTER DATABASE sandbox SET single_user with rollback immediate;
|
||||
|
||||
dbcc checkdb ('sandbox',repair_allow_data_loss)
|
||||
|
||||
ALTER DATABASE sandbox SET multi_user with rollback immediate;
|
||||
Reference in New Issue
Block a user