示例#1
0
        private void createProcedure_Click(object sender, EventArgs e)
        {
            var procedureHelper = new ProcedureData(Nametxt.Text, varsTxt.Text,
                                                    scriptTb.Text);
            var sql = tManager.CreateQuery(procedureHelper);

            try
            {
                connection.ExecuteCommand(sql, new string[] { });
            }
            catch (SqlException error)
            {
                MessageBox.Show(error.Message);
                return;
            }

            MessageBox.Show("Query Executed Correctly!");
        }