SQL Server (TSQL) - Is it possible to EXEC statements in parallel?

前端 未结 6 1526
自闭症患者
自闭症患者 2020-11-29 09:40

SQL Server 2008 R2

Here is a simplified example:

EXECUTE sp_executesql N\'PRINT \'\'1st \'\' + convert(varchar, getdate(), 126) WAITFOR DELAY \'\'000         


        
6条回答
  •  情深已故
    2020-11-29 10:11

    You can create an SSIS that has 2 tasks that run in parallel. Then make an unscheduled agent job to call this SSIS. You can finally execute this unscheduled agent job using sp_start_job.

提交回复
热议问题