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?
    • Moved by Matt Meehan - MSFT Tuesday, May 26, 2009 4:58 AM Not ADO.NET Data Services related (From:ADO.NET Data Services)
    Monday, May 25, 2009 10:34 AM

All replies