none
ExecuteNonQuery returns -1 for successful insert/update RRS feed

  • Question

  • Hi,
    I am reffering Microsoft.Practices.EnterpriseLibrary.Common in the data layer of my project. When i am using ExecuteNonQuery method provided in Database class of the library for saving/updating record within a given transaction i.e. db.ExecuteNonQuery(commandObject,dbTransaction).
    This function is returning -1 even the record get's saved/updated. Can someone please explain where I am going wrong?
    Monday, May 25, 2009 10:34 AM

All replies