WHILE 1 = 1 BEGIN WAITFOR DELAY '000:00:10' PRINT 'here' END
PRINT’here’不会输出,直到我停止进程,但是,我想看到它的运行.这可能吗?
尝试使用raiserror:
How do I flush the PRINT buffer in TSQL?