Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Severity from SQL Raiserrorr in WinForms

Status
Not open for further replies.

RileyCat

Programmer
Apr 5, 2004
124
0
0
US
Hi --

I am in VC++ in the VS 2008 .net environment building a WinForm that talks to Microsoft SQL.

I have a try/catch block around my call to SQL so I am properly catching the raiserror message from the call to SQL. What I can't seem to find though is how to get to the severity level that the raiserror generated.

In short . . . Is there a way to get to the "Severity" level from a raiserror generated out of T-SQL in a C++ WinForm environment?

THank you.



Stay Cool Ya'll! [smile2]

-- Kristin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top