SqlException

  • Thread starter Thread starter Ferdinand Zaubzer
  • Start date Start date
F

Ferdinand Zaubzer

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
 
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
 
Back
Top