This commit is contained in:
2023-04-26 16:04:26 +02:00
parent 7e98e5e95b
commit 55c5554fa3
14 changed files with 848 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
--step 1, go in emergency mode
ALTER database [ActivePos_write] set SINGLE_USER
Alter database [ActivePos_write] SET EMERGENCY
--step 2, do a checkdb
DBCC CHECKDB ('ActivePos_write') WITH NO_INFOMSGS, ALL_ERRORMSGS
--if no errors reported or index corruption, do a repair with data loss
DBCC CHECKDB ('ActivePos_write', REPAIR_ALLOW_DATA_LOSS)
--set the db back in multi user
ALTER database [ActivePos_write] set multi_user