Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ODBC SQL Server Drive Problem

Posted on 1998-07-24
3
Medium Priority
?
195 Views
Last Modified: 2010-03-19
Hi.
   i keep getting this problem that crops up here and there
in my asp programs.



Microsoft OLE DB Provider for ODBC Drivers error '80040e31'

[Microsoft][ODBC SQL Server Driver]Timeout expired

Why is this and how can this be solved?
I have tried having this line of code at the top of the asp
file

      Server.ScriptTimeout = 9000000

or any big number from 900 and onwards.

also, i'm using NT Option Pack so iis4 is installed...
thanks :)

Jussy
0
Comment
Question by:pure032398
  • 2
3 Comments
 
LVL 28

Expert Comment

by:sybe
ID: 1089218
Have you tried to set the Timeout of the connection-object:

Conn.ConnectionTimeout = 5

(it counts in minutes)
0
 
LVL 1

Author Comment

by:pure032398
ID: 1089219
Kewl!
i think this solved it!
If not .. oh well .. but i'm sure it has .. so answer it and have me points, laddy!
0
 
LVL 28

Accepted Solution

by:
sybe earned 80 total points
ID: 1089220
Ok, here it is
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question