예제 #1
0
        private void tsbExecute_Click(object sender, EventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;
                executeInsert();

            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                this.Cursor = Cursors.Default;
                _objExecute = null;
            }
        }
예제 #2
0
        private void executeInsert()
        {
            _objExecute = new clExecute();
            _objExecute.Query = txtInserts.Text.Trim();
            _objExecute.ServerName = txtServerName.Text.Trim();
            _objExecute.User = txtUser.Text.Trim();
            _objExecute.PWD = txtPwd.Text.Trim();
            _objExecute.DataBase = cboBases.Text.Trim();
            _objExecute.SqlAuthentication = true;

            if (_objExecute.execute())
                MessageBox.Show("Execução realizada com sucesso", "Migration",
                    MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
        }