Versions des environnements
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement