This article explains the steps to repair a corrupted database using the SQL Server Management Studio 2005
When Solatech returns the message: Unable to save the order. It is possible that the database is corrupted.
SQL Databases can become corrupted not allowing to save new records or to update existing records.
To diagnose if a table is corrupted the command DBCC CHECKDB is used.
To this command is executed as a query in the SQL Management Studio.
Steps to run the command DBCC CHECKDB:
CHECKDB found 0 allocation errors and 0 consistency errors in database 'Database name'.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
If errors are found on the database, the database need to be repaired with the switch "repair_allow_data_loss". In order to apply this command, the database needs to be in Single User mode.
Steps to set the database in Single User mode
Execute the command to repair database
Type the command
Use database_name
DBCC CHECKDB (database_name, repair_allow_data_loss)
Where Database name is the name of the company database.
Example:
Use Budget_Blinds
DBCC CHECKDB (Budget_Blinds, rapair_allow_data_loss)
To Execute Click on the button Execute or press F5
The following message will report any errors found and repaired.
"CHECKDB found X allocation errors and X consistency errors in database
'Canadian_Blind_Manufacturing'.
DBCC execution completed. If DBCC printed error messages, contact your system administrator."