Solved

ODBC SQL Server Drive Problem

Posted on 1998-07-24
3
167 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
Comment Utility
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
Comment Utility
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 20 total points
Comment Utility
Ok, here it is
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now