摘要:
最近做一个sql性能优化,本来想直接SSMS里面直接用执行计划功能的;结果把SSMS卡死了。 于是,改成用以下代码查看sql各个步骤的执行时间了。 --#tns定义 if object_id('tempdb..#tns') is not null drop table #tns; create ta 阅读全文
摘要:
如下 select name from sysobjects where xtype='TR'; 所有触发器 select name from sysobjects where xtype='P'; 所有存储过程 select name from sysobjects where xtype='V' 阅读全文