How can I display something during the execution of a SQL script on SQLServer?

前端 未结 4 1898
天涯浪人
天涯浪人 2021-01-05 04:09

For example. I have a database upgrade script for adding a column to a database table. It looks a little like this:

IF NOT Exists(SELECT * FROM SysColumns sc         


        
4条回答
  •  滥情空心
    2021-01-05 04:49

    RAISERROR ('column already exists',0,1)  with nowait
    

    or

    print 'column already exists'
    

提交回复
热议问题