When I catch an SQLException that could possibly come from several
sqlCommand.ExecuteNonQuery(); statements in a try-catch block how can I
identify the correct command without a stacktrace?

Thanks
Ferdinand

Re: SqlException by Kevin

Kevin
Tue Aug 21 06:07:33 CDT 2007

Your code would have to identify the command. Then you could create a custom
Exception class that contains that information.

--
HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Ferdinand Zaubzer" <ferdinand.zaubzer@schendl.at> wrote in message
news:u$4NCs94HHA.4476@TK2MSFTNGP06.phx.gbl...
> When I catch an SQLException that could possibly come from several
> sqlCommand.ExecuteNonQuery(); statements in a try-catch block how can I
> identify the correct command without a stacktrace?
>
> Thanks
> Ferdinand