SQL Databases Consistency error and Solution
In most of the time SQL database shows error or not accessible while we check database using DBCC, it shows consistency error.
Example:
DBCC results for SIGN database :
CHECKDB found 0 allocation errors and 125 consistency errors in table 'DCL.scan_record_table' (object ID 1977058079).
CHECKDB found 0 allocation errors and 125 consistency errors in database 'SIGN'
Solution
- The problem relates to corrupted tables in the SIGN database.
- Run the query given below from SQL Query Analyser after taking a backup.
- Run the queries one by one. On successful execution of first query, you run the second query. On successful execution of first query, you run the second query. After running the second query for each set of queries, copy down the results and send it to us.
- Also ensure that all users are logged out of sanchaypost.
sp_dboption 'SIGN', 'single user', 'true'
go
dbcc checkdb ('SIGN', REPAIR_REBUILD)
go
sp_dboption 'SIGN', 'single user', 'false'
go
After this, once again run 'DBAnalyzer >> DB Utilities >> Check database consistency' for SIGN database.
If any issue with above query kindly contact SDC Chennai
source.potools.blogspot.in