if (rtbSPQuery.Text != "") { string execQuery = rtbSPQuery.Text; SqlConnection con = new SqlConnection(ProjectConnection.conStr); try { con.Open(); SqlCommand comSaveSP = new SqlCommand("exec"+execQuery, con); comSaveSP.ExecuteNonQuery(); } catch (Exception ex) { MessageBox.Show(ex.Message); } finally { con.Close(); }
CREATE PROCEDURE
ALTER PROCEDURE
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)