Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Flushing RaiseError() messages in script
Message
De
30/03/2015 08:02:12
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01617332
Message ID:
01617379
Vues:
21
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform