Home > php教程 > php手册 > body text

关于sql数据库维护失败的问题查找方法

WBOY
Release: 2016-06-13 10:04:30
Original
1006 people have browsed it

查看JOB的错误日志
查看数据库维护计划的历史纪录,找出错误的信息
用sql事件跟踪器
使用一下sql语句做进一步检查
dbcc dbreindex(N'[dbo].[tblSiteWantProd]', N'', 90, sorted_data_reorg)
DBCC CHECKIDENT ('tblSiteWantProd')
DBCC CHECKDB
dbcc checktable
sql 错误信息
CREATE UNIQUE INDEX 终止,因为发现了索引 ID %1! 的重复键。最重要的主键为 ''%2!''。
%1=可能是表示当前表的第几个索引???
%2=重复键的值


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!