Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hej,

I have an application that has a sql command timeout 3 minute. what would be the impact if query finishes processing in 1 minute.

Any help would be appreciated.

Thanks in advance


What I have tried:

Hej,

I have an application that has a sql command timeout 3 minute. what would be the impact if query finishes processing in 1 minute.

Any help would be appreciated.

Thanks in advance
Posted
Updated 14-Feb-17 22:26pm
Comments
Karthik_Mahalingam 15-Feb-17 3:57am    
whats wrong in trying ?
Dont post the same content in "What i have tried"

what would be the impact if query finishes processing in 1 minute
No Impact, It will execute
Member 12148925 15-Feb-17 4:19am    
I think, that there could be impact that system has to wait 3 minute even though query is done in one minute.
Karthik_Mahalingam 15-Feb-17 4:52am    
no no not like that..
madhav_jain 15-Feb-17 3:58am    
max time to finish the processing is 3 min.. their are no impact if its finished in 1 min..

Please refer SqlCommand.CommandTimeout Property (System.Data.SqlClient)[^]

Quote:
I have an application that has a sql command timeout 3 minute

It Means the SQl Command can wait for maximum 3 mins to complete the execution of sql query, beyond that it will throw an exception.

Quote:
hat would be the impact if query finishes processing in 1 minute.

No Impact, It will execute Fine.
 
Share this answer
 
A command timeout is the maximum amount of time that a command is given to complete: if it doesn't complete in that time, it is aborted and an error raised.
If it completes in less than that time, the data is returned and the timeout value is ignored. The default value is 30 seconds.
SqlCommand.CommandTimeout Property (System.Data.SqlClient)[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900