The CommandType property can be set to ___________ when executing a text-based SQL query.

  • StoredProcedure
  • TableDirect
  • Text
  • Function
The correct option is Text. When executing a text-based SQL query using ADO.NET, you can set the CommandType property of the command object to Text. This indicates that the command text contains a SQL query statement to be executed directly against the database. Setting the CommandType to Text is appropriate for executing dynamic SQL queries or stored procedures that return rows.
Add your answer
Loading...

Leave a comment

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