public static bool RollbackTransaction(int index) { bool bRet = false; if (Program.EnableRemoting && false) { bRet = mDataTableProxy.RollbackTransaction(index); } else { if (mCommands.ContainsKey(index)) { SqlCommand cmd = mCommands[index]; SqlTransaction transaction = cmd.Transaction; transaction.Rollback(); mCommands.Remove(index); bRet = true; } } return(bRet); }