Guest User

Untitled

a guest
May 28th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. SqlConnection pripojeni = new SqlConnection(pripojovaci_retezec);
  2. string prikaz1 = "DELETE FROM Zakaznici WHERE= @ID";
  3.  
  4. string prikaz2 = "DELETE FROM Zakazky Where= @cizi_klic";
  5. SqlCommand cmd1 = new SqlCommand(prikaz1, pripojeni);
  6. SqlCommand cmd2 = new SqlCommand(prikaz2, pripojeni);
  7.  
  8. cmd1.Parameters.AddWithValue("@ID", Convert.ToInt32(textBox1.Text));
  9. cmd2.Parameters.AddWithValue("@cizi_klic", Convert.ToInt32(textBox1.Text));
  10.  
  11.  
  12. text = Convert.ToInt32(textBox1.Text);
Add Comment
Please, Sign In to add comment