Environment versions
Network:
Windows 2003 Server
>All,
>
>I am guessing this is an easy question to answer.
>
>How do I set the database timeout property for a web application? I do not see any setting for this in my web.config file nor in my connection string and I believe it is defaulting. I want it to be set to about 60 seconds and it appears to be defaulting to 10 or 20 seconds.
>
>Is this in the web.config file or somewhere else. Or perhaps it can be set on an individual page?
>
>Thanks in advance.
Time waiting for a connection is controlled by ConnectionTimeout setting in the connection string.
Time waiting for a query is controlled by DbCommand.CommandTimeout
HTH,
Viv
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only