exec sp_dboption 'test', 'single user', 'true'
Go
DBCC CHECKTABLE('tb_ccindex',repair_allow_data_loss)
go
sp_dboption 'test', 'single user', 'false'
Go
Go
DBCC CHECKTABLE('tb_ccindex',repair_allow_data_loss)
go
sp_dboption 'test', 'single user', 'false'
Go