Jump to content

transaction logging


jimfog

Recommended Posts

I have set up a transaction in which 2 queries are performed, 2 inserts having to do with user registration.

Suppose that one of the queries fails, how am I going to learn which one failed?

 

Can exceptions help me here?

Link to comment
Share on other sites

If you want to log it in background, you can use exception with specific message and/or the sql dump in the message. and use a specific exception handler for that particular type of exception that handler will dump the data to flat file or inform the admin or any thing you want to do with it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...