Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Flushing RaiseError() messages in script
Message
 
 
To
27/03/2015 15:01:51
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01617332
Message ID:
01617339
Views:
32
>I am using RaiseError() to display various messages in a script so I can know where it is as far as the execution. This is a very big script. I found out that after a while, such as 20 minutes, and about 400 lines of display, the display has stopped. This is not even a big command being executed. The portion of that script where this situation happens is executed in fractions of a second. So, I believe this is because the script is too big or that near the end, it reaches a section that it has to index a lot of big indexes. It would then seem that RaiseError() is caching the commands and not displaying them. Is there a flush architecture which applies to the RaiseError() command which might explain this?

Did you add WITH NOWAIT option ?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform