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.
Add your answer
Loading...

Leave a comment

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