Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7183799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:04:10+00:00 2026-05-28T18:04:10+00:00

I am executing the following query in a stored procedure, transferring one year’s transactions

  • 0

I am executing the following query in a stored procedure, transferring one year’s transactions from one table to another:

insert into 
    table2 
select
    * 
from 
    table1 
where 
    dates between '20110101' and 20111231'

When I use VB6 to call the stored procedure, it times out.

I’ve tried to set the QueryTimeout property on my RDO Connection to five seconds like so:

RdoConn.QueryTimeout = 5000

But it’s still timing out.

How can I prevent the execution of the query from timing out?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T18:04:12+00:00Added an answer on May 28, 2026 at 6:04 pm

    If you use an Ado connection you can use the following code

    dim myConn 
    Set myConn = CreateObject("ADODB.Connection") 
    myConn.CommandTimeout = 3600
    myConn.ConnectionTimeout = 3600
    

    and then use this connection to execute your query.

    How much time does your query take to run without issue?

    Update:
    Using RdoConnection, you can try to set event the LoginTimeout

    RdoConn.QueryTimeout = 5000
    RdoConn.LoginTimeout = 5000
    

    or as pointed out by Oleg Dok

    RdoConn.QueryTimeout = 0 'disable timeout
    RdoConn.LoginTimeout = 0 'disable timeout
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

right now I have the following query in a stored procedure. select * from
I am successfully executing the following query in SQL Server 2008 built into VS2008:
I am getting the following error while executing the following query in an Stored
I am using the following code snippets to insert values using stored procedure. the
I am executing a following query: SELECT DISTINCT users.user_id, users.email, users.irc_nickname FROM users, user_group_map,
I'm executing the following query: Select guiPolygonID, dbo.fn_Yval(p1X, p1Y, p2X, p2Y, 4.003318) From [vPolygonSegments]
I'm trying to insert data into a table using a plpgsql function or stored
while executing the following query, i get an error that there's an error in
How would I go about executing the following Hibernate query using the criteria API.
I have the following query that returns 1738 rows: select a.street, b.id from TableA

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.