Results 1 to 2 of 2
  1. #1
    stephenmbell is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2011
    Posts
    1

    Pass through query - ODBC Timeout

    I have an access database with a pass through query that essentially calls a Stored Procedure on a SQL Server database.

    This stored procedure takes 5+ minutes to complete - it imports 100K+ records from a file, and does some number crunching as well.

    I have a button on a form that I want the user to click, once clicked it prepares the text file to import (strips the header row, and quotation marks..etc.. Then runs this stored procedure.

    The problem I am having is - the file is getting prepared but when I try to run pass through query I am getting an ODBC Timeout.

    The code I am using is simple to run the query:

    Code:
        
        With DoCmd
            .SetWarnings False
            .OpenQuery "ImportLynkData"
            .SetWarnings True
        End With
    I have also tried using ADO to run this by creating a connection object, and a command object and running the command - but I still get an ODBC timeout.

    Am I missing something? Any help or suggestions are greatly appreciated. Thanks in advance



    sb

  2. #2
    stmoong is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Location
    Singapore
    Posts
    108
    Have you tried setting the ODBC Timeout property for your query? Either set to a specific number of seconds before timeout or 0 for no timeout.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. ODBC timeout message on query
    By thart21 in forum Queries
    Replies: 3
    Last Post: 08-05-2011, 08:54 AM
  2. Timeout Expired
    By Raj in forum Access
    Replies: 3
    Last Post: 05-04-2011, 09:51 PM
  3. Pass-Through Query or ADO, is there a way?
    By Amber_1977 in forum Queries
    Replies: 3
    Last Post: 11-10-2010, 08:56 AM
  4. Linked Table and S1T00 timeout error
    By Jack A in forum Access
    Replies: 1
    Last Post: 01-22-2010, 09:14 PM
  5. Timeout Expired
    By brvaland in forum Database Design
    Replies: 0
    Last Post: 04-03-2009, 04:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums