How to see progress of running SQL stored procedures?

前端 未结 3 1157
滥情空心
滥情空心 2020-12-09 09:30

Consider the following stored procedure..

CREATE PROCEDURE SlowCleanUp (@MaxDate DATETIME)
AS
BEGIN
    PRINT \'Deleting old data Part 1/3...\'
    DELETE FR         


        
3条回答
  •  借酒劲吻你
    2020-12-09 09:54

    If you use RAISERROR with a severity of 10 or less, and use the NOWAIT option, it will send an informational message to the client immediately:

    RAISERROR ('Deleting old data Part 1/3' , 0, 1) WITH NOWAIT

提交回复
热议问题