Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Flushing RaiseError() messages in script
Message
From
30/03/2015 08:02:12
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01617332
Message ID:
01617379
Views:
22
>You have to assign your messages to a variable first, then display that variable instead.
>
>Ex.
>
>DECLARE @msg VARCHAR(200);
>SET @msg = 'Processing Report at ' + CONVERT(varchar, DATEPART(hour, GETDATE())) + ': '+ RIGHT(REPLICATE('0', 2) 
>          + CONVERT(varchar, DATEPART(minute, GETDATE())), 2) + ': '+ RIGHT(REPLICATE('0', 2) 
>          + CONVERT(varchar, DATEPART(second, GETDATE())),2)+'...';
>RAISEERROR(@msg + '...', 0, 1) WITH NOWAIT;
>
Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform