Randolph West recommends using RAISERROR WITH NOWAIT rather than PRINT for printing messages:
Read that last line again. It’s saying that the
If you want immediate output from your long-running process, use
RAISERROR
instead ofWITH NOWAIT
parameter.Naturally I can’t leave you hanging with a 150-word blog post, most of which is quoting Erik, so I decided to do some digging. The question I posed myself was “How big is the
I always use error level 10, as that’s the minimum level guaranteed to print to the console immediately and it does not write to error logs or stop operations.