Beispiel #1
0
        private void HandleUpgradeError(hMailServer.Database database, Exception error, string scriptToExecute)
        {
            try
             {
            database.RollbackTransaction();
             }
             catch (Exception)
             {
            // When an error occurs in MSSQL, the rollback will be done
            // automatically. Hence it's not always an error that we cannot
            // rollback.
            //
            // Maybe we should check the actual cause of the rollback failure...
            //
             }
             finally
             {
            MessageBox.Show(error.Message, scriptToExecute);
             }

             buttonClose.Enabled = true;
             return;
        }