How to Suppress the SELECT Output of a Stored Procedure called from another Stored Procedure in SQL Server?

后端 未结 10 2046
误落风尘
误落风尘 2020-12-15 14:50

I\'m not talking about doing a \"SET NOCOUNT OFF\". But I have a stored procedure which I use to insert some data into some tables. This procedure creates a xml response s

10条回答
  •  -上瘾入骨i
    2020-12-15 15:24

    I think I found a solution.

    So what i can do now in my SQL script is something like this (sql-psuedo code):

    create table #tmp(xmlReply varchar(2048))
    while not_done
      begin
        select top 1 record from updateTable where processed = 0
        insert into #tmp exec insertSomeData @param=record
      end
    drop table #tmp
    

    Now if there was a even more efficient way to do this. Does SQL Server have something similar to /dev/null? A null table or something?

提交回复
热议问题