sql server 2000附加数据库 是发生602错误 进行 dbcc cheacktable 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 参考http://technet.microsoft.com/zh-cn/library/ms174338.aspxA. 检查特定表以下示例将检查 AdventureWorks 数据库中的 HumanResources.Employee 表的数据页完整性。 复制代码USE AdventureWorks;GODBCC CHECKTABLE ("HumanResources.Employee");GOB. 以较低的开销检查表以下示例将以较低的开销检查 AdventureWorks 数据库中的 Employee 表。 复制代码USE AdventureWorks;GODBCC CHECKTABLE (HumanResources.Employee) WITH PHYSICAL_ONLY;GOC. 检查特定索引以下示例将检查通过访问 sys.indexes 获得的特定索引。 复制代码USE AdventureWorks;GODECLARE @indid int;SET @indid = (SELECT index_id FROM sys.indexes WHERE object_id = OBJECT_ID('Production.Product') AND name = 'AK_Product_Name');DBCC CHECKTABLE ("Production.Product", @indid); Master等几个系统DB上运行看看 统计 一个表中的id字段依赖着另外两个表,如何写SQL语句? 请教两个表查询后合成一个表 求救,根据多ID更新多字段 混合身份验证模式的问题。 SQL 2005/2008字段的修改 SQL-一个函数的小问题,求教。 更新触发器如何写?? to:icevi(按钮工厂),因为不能在一个帖里头回复超过30次,所以另开一贴。我的解决方法: 请教sqlserver2000里如何提高数据统计查询的速度? 求一条头疼的sql 请教数据库的"等待类型"
http://technet.microsoft.com/zh-cn/library/ms174338.aspx
A. 检查特定表
以下示例将检查 AdventureWorks 数据库中的 HumanResources.Employee 表的数据页完整性。 复制代码USE AdventureWorks;
GO
DBCC CHECKTABLE ("HumanResources.Employee");
GOB. 以较低的开销检查表
以下示例将以较低的开销检查 AdventureWorks 数据库中的 Employee 表。 复制代码USE AdventureWorks;
GO
DBCC CHECKTABLE (HumanResources.Employee) WITH PHYSICAL_ONLY;
GOC. 检查特定索引
以下示例将检查通过访问 sys.indexes 获得的特定索引。 复制代码USE AdventureWorks;
GO
DECLARE @indid int;
SET @indid = (SELECT index_id
FROM sys.indexes
WHERE object_id = OBJECT_ID('Production.Product')
AND name = 'AK_Product_Name');
DBCC CHECKTABLE ("Production.Product", @indid);