Run a SQL Server procedure from Excel

前端 未结 2 1124
我在风中等你
我在风中等你 2021-01-14 02:03

I\'m using SQL Server 2008 Enterprise. I created a procedure in one database. The procedure is composed of several queries to different databases and the final combined resu

相关标签:
2条回答
  • 2021-01-14 02:53

    (Copying key parts of @Roni's answer)

    create procedure dbo.xxx
    as
    
    set nocount on
    ...
    
    0 讨论(0)
  • 2021-01-14 02:54

    I transformed the procedure to have Table Variables instead of Temporary tables and I've added "set nocount on" to the beginning of the procedure.

    The second action solved the issue.

    The first action improved the response time of the procedure.

    0 讨论(0)
提交回复
热议问题