Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
In C#, what is the correct way to assign SQL parameters securely?
cmd.CommandText = txtUser.Text;
cmd.Parameters.Add("@username", txtUser.Text);
cmd.Parameters.AddWithValue("@username", txtUser.Text);
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!