SQLException in Exception Management Block RRS feed

  • Question

  • User14742582 posted
    Is it possible to record SqlException details using Exception Management Block? I want to save the details of SqlException and not just general info. How? Thanks
    Monday, January 3, 2005 8:06 PM

All replies

  • User-1502626911 posted

    Just make sure you specify that it is a SQL exception that you are catching.

    Try this:

    using System.Data.SqlClient;



       // whatever you are doing


    catch (SqlException exc)



    This may not be what you are looking for. If not, please specify further.



    Friday, May 20, 2005 1:54 PM