Troubleshooting SQL database maintenance failure _ PHP Tutorial

Source: Internet
Author: User
Tags sql error
How to find the problem of SQL database maintenance failure. View the error log of the JOB, view the historical records of the database maintenance plan, and find out the error information. use the SQL event tracker to use the SQL statement to further check dbccdbreindex (N [dbo]. [tbl view JOB error logs
View the history of the database maintenance plan and find the error information
Use SQL event tracker
Use SQL statements for further checks
Dbcc dbreindex (n' [dbo]. [tblSiteWantProd] ', n', 90, sorted_data_reorg)
Dbcc checkident ('tblsitewantprod ')
DBCC CHECKDB
Dbcc checktable
SQL error message
Create unique index ended because index id % 1 was found! . The most important primary key is ''% 2! ''.
% 1 = the number of indexes in the current table ???
% 2 = duplicate key value


View the historical records of the database maintenance plan and find out the error information. use the SQL event tracker to use the SQL statement to further check dbcc dbreindex (n' [dbo]. [tbl...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.