visual studio - c# time out after executing connection -
i have application connects ms access , acquires data show in application. want setup timeout after 2 minutes. meaning, 2 minutes after search button executed connection access database terminated.
does have suggestions on easiest way accomplish this? or way close connection after data acquired?
thank you!
you mean this, value of 0 indicates no limit, , should avoided in commandtimeout because attempt execute command wait indefinitely.
this.adapter.insertcommand.commandtimeout = timeout; you can add connection string
connection timeout=2;
Comments
Post a Comment