October 1, 2014 at 8:37 pm
Comments posted to this topic are about the item raiserror level
October 1, 2014 at 10:37 pm
Thank you for the question Steve.
Slightly off topic, prefer using RAISERROR to PRINT for progress reporting on long running scripts as it is almost instant and the printf functionality is very handy.
RAISERROR ('This is %s message number %d!', 0, 0 ,'my',123) WITH NOWAIT;
π
October 2, 2014 at 1:12 am
Eirikur Eiriksson (10/1/2014)
Thank you for the question Steve.Slightly off topic, prefer using RAISERROR to PRINT for progress reporting on long running scripts as it is almost instant and the printf functionality is very handy.
RAISERROR ('This is %s message number %d!', 0, 0 ,'my',123) WITH NOWAIT;
π
I totally agree with you.
/HΓ₯kan Winther
MCITP:Database Developer 2008
MCTS: SQL Server 2008, Implementation and Maintenance
MCSE: Data Platform
October 2, 2014 at 2:23 am
This was removed by the editor as SPAM
October 2, 2014 at 5:24 am
Thanks for a a good question. I also use instead of print to avoid the delay associated with print, especially when debugging. I find the core functionality to be excellent as well, especially when I have several independent (albeit related) steps in a process. I can throw an error to display some information that a step won't be processed and the continue on with the rest of them.
October 2, 2014 at 6:28 am
Good question, Steve. Thanks.
---------------
Mel. π
October 2, 2014 at 7:41 am
Thank you for the post, Steve, good one.
Well, this was bit challenging one for me especially when you are working in cmd mode, but after generating few errors manually via script and few minutes of analysis, I marked the answer with 70-30, and I got it right. π
ww; Raghu
--
The first and the hardest SQL statement I have wrote- "select * from customers" - and I was happy and felt smart.
October 2, 2014 at 7:47 am
Thanks for the question Steve.
October 2, 2014 at 11:49 am
Useful information imho. It would be nice to have the msdn article on the topic clarified a bit.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
October 2, 2014 at 12:14 pm
Nice question, I like when I have to Google to find the answer.
Aigle de Guerre!
October 2, 2014 at 1:23 pm
Thanks for the question, Steve.
Using RAISERROR to generate messages is a good idea; I'll have to remember that. One more item in the ol' bag o' tricks!
October 2, 2014 at 3:46 pm
Nice to know. Thanks!
Not all gray hairs are Dinosaurs!
October 2, 2014 at 4:24 pm
Note that THROW works well in some cases, RAISERROR in others.
Learn how to use both.
October 2, 2014 at 4:40 pm
The key for me was the word informational. Those go through 10.
October 2, 2014 at 4:41 pm
Dana Medley (10/2/2014)
Thanks for the question Steve.
I love your bug avatar. It fooled me. I thought there was a bug on my screen.
Viewing 15 posts - 1 through 15 (of 20 total)
You must be logged in to reply to this topic. Login to reply