Saved Bookmarks
| 1. |
What Is Sqlcommand.commandtimeout Property Used For? |
|
Answer» CommandTimeout Property is used to Get or set the wait time before terminating the attempt to execute a COMMAND and generating an ERROR. //SPECIFY the CommandTimeout property valueSqlCommand CommandObject = NEW SqlCommand("StoredProcedureName", ConnectionObject); //Wait for 10 seconds to execute the Stored procedure CommandObject.CommandTimeout = 10; The time is in seconds. The DEFAULT is 30 seconds. CommandTimeout Property is used to Get or set the wait time before terminating the attempt to execute a command and generating an error. |
|