Home All Groups Group Topic Archive Search About

SQLCommand, CommandTimeout property

Author
18 Dec 2006 8:48 PM
Doug
I'm trying to recreate a timeout in sql - on development - by creating
a long running query and setting the command timeout property of the
SqlCommand object to 1 so that the query automatically times out.

It's not working.  I watch the clock and the process is obviously
taking more than 1 second and yet no timeout is occurring.  The query
returns data with no problems.

Does the command timeout property not behave as I think it is?

Doug

AddThis Social Bookmark Button