Which ADO.NET class or object is commonly used to create parameterized queries?

  • SqlCommand
  • SqlConnection
  • SqlDataAdapter
  • SqlDataReader
The SqlCommand class in ADO.NET is commonly used to create parameterized queries. It allows developers to define parameter placeholders in SQL queries and then assign values to these parameters programmatically, helping to prevent SQL injection attacks and improve query performance.
Add your answer
Loading...

Leave a comment

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