Results 1 to 2 of 2
  1. #1
    adnancanada is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    122

    Pass Throug Query error

    I have very large tables (back hand SQL SEVER). I have this code running fine.



    I have PO header table is called pkko and I have PO details is called tkko, vdrnbr is coming from tkko.

    Select PO, POdate, Itemdes, vdrnbr from pkko
    INNER JOIN tkko
    ON
    pkko.po = tkko.po

    when I run above pass through query it runs fine. When I run below query using condition then it give me error msg of "Timeout"

    Select PO, POdate, Itemdes, vdrnbr from pkko
    INNER JOIN tkko
    ON
    pkko.po = tkko.po
    where vdr = '1230000'

    why?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    I am going to guess the Connection TimeOut property of your pass through is shorter than the time required to apply the WHERE clause. Is the column you are applying the criteria to really Text?

    Maybe you can increase the value of your TimeOut. IIRC, if you set the value to 0 it will not have a timeout.

    Another option might be to create a View and index your vdr column as indexed using Included
    https://msdn.microsoft.com/en-us/library/ms190806.aspx

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

Similar Threads

  1. Replies: 5
    Last Post: 04-27-2015, 02:40 PM
  2. Replies: 7
    Last Post: 03-11-2015, 12:48 PM
  3. How to get pass the error I get when a field is blank
    By beanhead0321 in forum Programming
    Replies: 12
    Last Post: 08-16-2011, 08:09 PM
  4. 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
  5. Opinions on PL/SQL and pass through query
    By thart21 in forum Queries
    Replies: 5
    Last Post: 06-02-2010, 11:08 PM

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