Can a transaction be rolled back after it’s committed and connection is closed?
finally
{
// Commit the transaction.
sqlTran.Commit();
reader.Close();
reader.Dispose();
conn.Close();
conn.Dispose();
}
I would like to give the user an option of Opps! roll it back. So if it’s commited can it be rolled back?
A committed transaction can never be rolled back if you want your transaction to be persistent after a commit.
Are you looking for savepoints?