Click here to monitor SSC

DBConcurrencyException with Sql server trigger

Last post 03-21-2009, 4:18 PM by sinan. 0 replies.
Sort Posts: Previous Next
  •  03-21-2009, 4:18 PM Post number 72561

    • sinan is not online. Last active: 03-23-2009, 11:24 AM sinan
    • Not Ranked
    • Joined on 03-21-2009
    • Level 1: Deep thought

    DBConcurrencyException with Sql server trigger

    hi....

    i have trigger that chk the if there is enough quantity for some items in the stock when the user place an order,so i raise error when there is not enough quantity and rollback the operation.

    the trigger work well ..but when i receive the first error (my own) and trying to reupdate i receive the error (DBConcurrencyException) even when i rollback the transaction in the trigger when the error happend. it seems the ado or the dataset did not know the transaction has been canceld.

    so whats is going on

    thanks .

View as RSS news feed in XML