T-SQL STOP or ABORT command in SQL Server

后端 未结 9 559
轻奢々
轻奢々 2021-01-01 08:44

Is there a command in Microsoft SQL Server T-SQL to tell the script to stop processing? I have a script that I want to keep for archival purposes, but I don\'t want anyone t

9条回答
  •  一整个雨季
    2021-01-01 08:59

    Why not simply add the following to the beginning of the script

    PRINT 'INACTIVE SCRIPT'
    RETURN
    

提交回复
热议问题