![]() |
|
|
|
#1 |
|
On Nov 3, 2:45*pm, "aspfun via DotNetMonster.com" <u53138@uwe> wrote:
> I am going to make a setting for timeout in the following places: > 1) SQLCommand.CommandTimeout > 2) IIS, default web site, properties, connection timeout > 3) webcofig, ConnectionString, timeout > Questions: > Do I need to setup all three place or only one or two? > (Provide that code is good and connection was closed after update or insert > procedure) > > -- > Message posted viahttp://www.dotnetmonster.com It depends on what you need to do. Connection Timeout in IIS sets the time before the server disconnects an inactive user. SQLCommand.CommandTimeout determines the maximum number of seconds the command is given to execute the sql. And the timeout of connection string in the web.config file will only controls the timeout of the connection to the database. All three options do different things. Alexey Smirnov |
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Optiplex 620 Serial card Problem | Mike | Computer Support | 6 | 07-10-2007 02:30 AM |
| Spoke to Spoke Enhanced Config (ASA-PIX) NEED HELP ASAP!! | T-Mak | Hardware | 1 | 10-27-2006 11:56 AM |
| Help required in interpreting the 'Timeout' field in parallel port's EPP mode. | amitsheth@gmail.com | Computer Information | 1 | 08-25-2006 11:54 PM |
| Windows XP takes too long to start up | silva.antonio@gmail.com | Computer Support | 2 | 05-25-2006 02:50 AM |
| Part of network has a internet timeout problem | news.losch.net | Wireless Networking | 6 | 12-19-2005 03:08 PM |