Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Participant
816 Points
126 Posts
Jun 02, 2010 06:17 PM|LINK
And if you want to filter only for SQL-related errors, just replace Exception with SqlException in your Catch block. This way you'll be sure that your error message actually matches the error.
http://msdn.microsoft.com/en-us/library/686y883x(v=VS.100).aspx
Draak
Participant
816 Points
126 Posts
Re: Violation of PRIMARY KEY constraint 'PK_Awards'. Cannot insert duplicate key in object 'dbo.A...
Jun 02, 2010 06:17 PM|LINK
And if you want to filter only for SQL-related errors, just replace Exception with SqlException in your Catch block. This way you'll be sure that your error message actually matches the error.
http://msdn.microsoft.com/en-us/library/686y883x(v=VS.100).aspx
Antony Highsky About Me