I’ve got several T-SQL Stored Procedures, where I am using RAISERROR with a Severity parameter of 0 to print progress messages to the output window. I am already using WITH NOWAIT to ensure the messages get printed immediately.
However, no matter what string i pass to RAISERROR, only the first character is being printed to the screen.
For example:
RAISERROR('Profiles Complete', 0, 1) WITH NOWAIT
only prints a single ‘P’ to the screen.
Does anybody know why this is or how I can fix it?
Thanks very much,
Martyn.
When a variable is declared as char with no length, the length defaults to 1.
Output: