What is the primary purpose of using parameterized queries in ADO.NET?

  • To automatically generate SQL queries
  • To encrypt query parameters
  • To improve query performance
  • To prevent SQL injection attacks
Parameterized queries in ADO.NET help prevent SQL injection attacks by separating SQL code from user input. This reduces the risk of malicious SQL code being injected into the query, enhancing the security of the application.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *