***************************** Internal to Citixsys Support Team*********************************
Environment :
iVend 6.6 7989 with SAPB1
Problem Statement :
iVend database got Suspect Mode and there is need to move to Normal Mode.
Note : It should be discussed with Level 3 team first before using this one
SQL Queries :
Option 1:
EXEC sp_resetstatus 'yourDBname';
ALTER DATABASE yourDBname SET EMERGENCY
DBCC checkdb('yourDBname')
ALTER DATABASE yourDBname SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CheckDB ('yourDBname', REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE yourDBname SET MULTI_USER
Option 2:
--to return to multi-user mode:
ALTER DATABASE 'yourDBname';
SET MULTI_USER Use database_name
GO
ALTER DATABASE database_name SET SINGLE_USER
GO
DBCC CHECKDB('database_name', REPAIR_REBUILD)
GO
--to return to multi-user mode:
ALTER DATABASE <database-name> SET MULTI_USER