19
Reply

SqlTransaction has completed, it is no longer usable

Sutha Shalini

Sutha Shalini

Jul 8 2011 6:32 AM
16.8k
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)