19
Answers

SqlTransaction has completed, it is no longer usable

Sutha Shalini

Sutha Shalini

13y
16.8k
1
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)