CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'hellopassword'; GO
SqlConnection conn = null; SqlDataReader rdr = null; string orderinfo = richTextBox1.Text; try { conn = new SqlConnection( "Server=(local);DataBase=Sales;Integrated Security=SSPI"); conn.Open(); SqlCommand cmd = new SqlCommand("runorder", conn); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("@order", orderinfo)); rdr = cmd.ExecuteReader(); } finally { if (conn != null) { conn.Close(); } if (rdr != null) { rdr.Close(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)