Sutha Shalini

Sutha Shalini

  • 1.3k
  • 94
  • 34.9k

SqlTransaction has completed, it is no longer usable

Jul 8 2011 6:32 AM
SqlTransaction has completed; it is no longer usable...


This is the code:

if (mfnSaveForm() == true)
  {
 
  // (Before commintting record this error had come.)
  GblDeclarations.gblSQLTrans.Commit(); 
 
 
  MessageBox.Show("Records Updated Successfully", "RECORD SAVED", MessageBoxButtons.OK, MessageBoxIcon.Information); 
  btnSave.Enabled = false;
  GblDeclarations.gblTransBegin = false;
 
  }

Please Give me the solution....Thank you

Answers (19)