I wrote an SQL insert method in C # and would like to convert it, so that the rubrics (username, victories, defeats) can be changed with @ and Parameters.AddWithValue. How can I solve this problem
SqlConnection con = new SqlConnection(@"Data Source=******;Initial Catalog=UserDB;Integrated Security=True");
SqlCommand cmdinsert = new SqlCommand("Insert UserTabelle values('" + 0 + "','" + 0 + "','" + txtBenutzerName.Text + "')", con);
con.Open();
cmdinsert.CommandType = CommandType.Text;
cmdinsert.ExecuteNonQuery();
con.Close();
MessageBox.Show("Account erfolgreich erstellt");
Login login = new Login(txtBenutzerName.Text);
login.Show();
this.Close();
Insert UserTabelle valueshow aboutINTO?