1、没有聚集索引查询

2、有聚集索引查询

3、没有非聚集索引查询

4、有非聚集索引查询

5、查询表索引语句
EXEC sp_helpindex A
6、删除索引语句
op index t_PortApply.PK_A1
7、除主键约束(聚集索引)语句
alter   table  A op   constraint  PK_A1
8、显示执行时间
 declare @d datetime
 set @d=getdate() 
    select * from   @tmpTable
 select [语句执行花费时间(毫秒)]=datediff(ms,@d,getdate()) 
原文:http://www.cnblogs.com/starts/p/5265546.html