存储过程开始处加:set nocount on

解决方案 »

  1.   

    to CrazyFor:
    能详细一点吗?如何用,谢谢
      

  2.   

    SET NOCOUNT ON
    select z1 into #临时表1 from t1 where 条件1
    select z1 into #临时表2 from t1 where 条件2
    select t1.id,(select top1 z1 from 临时表1 where 关联 ) as writer,
                 (select z1 from 临时表2 where 关联) as check
    from  t1  where 条件
    SET NOCOUNT OFF
      

  3.   

    SET NOCOUNT ON
    select z1 into #临时表1 from t1 where 条件1
    select z1 into #临时表2 from t1 where 条件2
    select t1.id,(select top1 z1 from 临时表1 where 关联 ) as writer,
                 (select z1 from 临时表2 where 关联) as check
    from  t1  where 条件
    SET NOCOUNT OFF