另外,我想问一下,占用CPU高的比如: declare @P1 int set @P1=180150169 declare @P2 int set @P2=1 declare @P3 int set @P3=1 declare @P4 int set @P4=293 exec sp_cursoropen @P1 output, N'select SMT_id from SMT_cp where SMT_key=1 and SMT_key1=1 and SMT_key2=1 and SMT_yp_id=106354 order by SMT_id desc', @P2 output, @P3 output, @P4 output select @P1, @P2, @P3, @P4这里有什么问题吗?红色这个语句我查了好像没问题
SQL Profiler在开始跟踪前,有很多跟踪选项设置的,设置其中的CPU Time >= [你设定的阀值(单位是毫秒)] 即可.
declare @P1 int
set @P1=180150169
declare @P2 int
set @P2=1
declare @P3 int
set @P3=1
declare @P4 int
set @P4=293
exec sp_cursoropen @P1 output, N'select SMT_id from SMT_cp where SMT_key=1 and SMT_key1=1 and SMT_key2=1 and SMT_yp_id=106354 order by SMT_id desc', @P2 output, @P3 output, @P4 output
select @P1, @P2, @P3, @P4这里有什么问题吗?红色这个语句我查了好像没问题