Diane,
If all you need to know is if the stored procedure you ran completed
successfully, then all you have to do is determine whether or not there was
an exception, if not, then the command succeeded.
As for what SqlExceptions might be thrown, the SqlException class will
have more information based on the specific errors that SQL server returns.
In the end though, it's that one exception that is thrown, with additional
information.
Is there a particular error that you are trying to catch from SQL
server? If so check the Errors property on the exception instance and then
look at the Number property of the individual errors, checking against the
specific errors you are looking for.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Diane Droubay" <Diane
Dr*****@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.com...
to my application?
In my web service, I'm using the Sql Data provider for .NET. I put the
code
that sets up parameters, my call to Connection.Open(), and to
Command.ExecuteNonQuery() in a try block, then catch SqlException.
The problem is, I have been unable to determine what SqlExceptions might
be
thrown to my app, and what they might mean. Specifically, I need to know
whether or not the stored procedure I just ran executed successfully. Is
there any place I can look this up?
Thanks in advance.