Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 123»»»

THROW - 1 Expand / Collapse
Author
Message
Posted Tuesday, February 19, 2013 9:21 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 6:58 PM
Points: 5,575, Visits: 24,827
Comments posted to this topic are about the item THROW - 1

If everything seems to be going well, you have obviously overlooked something.

Ron

Please help us, help you -before posting a question please read

Before posting a performance problem please read
Post #1421920
Posted Tuesday, February 19, 2013 9:57 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, June 24, 2014 6:38 PM
Points: 1,371, Visits: 1,560
Thanks Ron for another one on SQL-2012.
Need to do a bit of reading to answer this (example [A] in BOL was sufficient to provide necessary hints)


~ Lokesh Vij

Guidelines for quicker answers on T-SQL question
Guidelines for answers on Performance questions

Link to my Blog Post --> www.SQLPathy.com

Follow me @Twitter

Post #1421925
Posted Tuesday, February 19, 2013 9:59 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: 2 days ago @ 7:15 PM
Points: 1,129, Visits: 1,163
how should I say it ??
I got that right ..was caught up for a while in severity level , as in msdn , when Throw used without parameters, the level suggested 14 ..

and what a well formed questiion
"The user defined error message 55555 does NOT exist in sys.messages"
--(you were thinking it )


well, learned something ..
thanks for the question ...


~ demonfox
___________________________________________________________________
Wondering what I would do next , when I am done with this one
Post #1421926
Posted Tuesday, February 19, 2013 11:27 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 2:11 AM
Points: 13,359, Visits: 10,224
Great question Ron, thanks!



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1421936
Posted Wednesday, February 20, 2013 12:01 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Thursday, June 5, 2014 8:36 AM
Points: 926, Visits: 556
After reading BOL twice, Got some knowledge about it ..

I'm slightly confused with Level mentioned in example B (BOL) . But anyway I managed get it correct..


--
Dineshbabu
Desire to learn new things..
Post #1421938
Posted Wednesday, February 20, 2013 12:24 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, February 6, 2014 4:15 AM
Points: 1,242, Visits: 1,546
Hi,
i am not sure about correct answer. When i execute this T-sql in Sql server 2012.
It shows Level 14 ,State 1 and message = "why oh why do you do this".

When i check BOL, it's showing "The severity is set to 16."
Can someone make it clear that why my answer is incorrect ?

Thanks
Vinay Kumar




Thanks
Vinay Kumar
-----------------------------------------------------------------
Keep Learning - Keep Growing !!!
www.GrowWithSql.com

Post #1421946
Posted Wednesday, February 20, 2013 12:50 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Yesterday @ 10:42 AM
Points: 3,868, Visits: 5,024
Good question, Ron. Thanks
Learned something new here.


____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Post #1421958
Posted Wednesday, February 20, 2013 1:23 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: 2 days ago @ 8:33 AM
Points: 2,469, Visits: 2,346
Great question, thanks!
Post #1421964
Posted Wednesday, February 20, 2013 3:03 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Thursday, July 17, 2014 8:17 AM
Points: 856, Visits: 516
Can anyone please explain about the error level 14 and 16. I am not able to understand this
Post #1422000
Posted Wednesday, February 20, 2013 3:26 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, July 14, 2014 4:37 AM
Points: 275, Visits: 229
oh if only we had 2012 :'( lol

got 2 out of 3 right guesing after googling how THROW works

good question and well written


Regards
ld

Stoke-on-Trent
United Kingdom

If at first you don't succeed, go to the pub and drink away your current thought plan.
Post #1422009
« Prev Topic | Next Topic »

Add to briefcase 123»»»

Permissions Expand / Collapse