What is the significance of the CommandType property in an ADO.NET command object?
- It defines the parameters for the SQL command
- It determines the type of SQL command being executed
- It sets the timeout for the command execution
- It specifies the type of database being accessed
The significance of the CommandType property in an ADO.NET command object is that it determines the type of SQL command being executed. It can be set to CommandType.Text for regular SQL queries or CommandType.StoredProcedure for executing stored procedures.
Loading...
Related Quiz
- When should you use parameterized queries instead of plain SQL statements?
- Optimistic concurrency relies on ___________ to detect conflicts.
- The Code-First approach in Entity Framework focuses on creating the database ___________ based on entity classes.
- The DataRelation class is used to define relationships between ___________.
- How can you manage the state of a database connection in ADO.NET?