Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ODBC SQL Server Drive Problem

Posted on 1998-07-24
3
184 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 20 total points
ID: 1089220
Ok, here it is
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSRS - Date Report Options 2 29
Nested Case statement 4 38
Are triggers slow? 7 12
SQL Recursion 6 19
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…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

837 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