In ADO.NET, the ___________ property of a command object specifies the maximum amount of time a command can run before being terminated.
- CommandTimeout
- CommandDuration
- TimeoutDuration
- ExecutionTimeLimit
The correct option is CommandTimeout. In ADO.NET, the CommandTimeout property of a command object allows you to specify the maximum amount of time (in seconds) that a command can execute before it is terminated. This property is useful in scenarios where you want to control the execution time of commands, preventing long-running queries from affecting application performance or causing timeouts.
Loading...
Related Quiz
- In LINQ to Entities, what is an Entity Data Model (EDM)?
- In Entity Framework, what is the role of the DbContext class?
- Exception handling in non-query command execution involves using ___________ to catch and handle errors.
- In Entity Framework, you can improve performance by using ___________ for executing raw SQL queries.
- In ADO.NET, how can you monitor and manage the connection pool effectively?