Results 1 to 2 of 2

Thread: openquery error

  1. #1
    Join Date
    Nov 2002
    Posts
    231

    openquery error

    Hello,
    if I am running this query and getting the error the below error

    SELECT * FROM OPENQUERY(AS400ODBC,'
    SELECT CBH_CREDIT_MEMO_NMBR,CBH_CREDIT_MEMO_DATE,CBH_CUST _TAX_CODE,
    CBH_TAXABLE_TOTAL,CBH_CUST_NMBR FROM CREDITBLDH CR1 WHERE CR1.
    CBH_CREDIT_MEMO_DATE = (SELECT MAX(CR2.CBH_CREDIT_MEMO_DATE) FROM CREDITBLDH CR2 WHERE CR1.CBH_CUST_NMBR = CR2.CBH_CUST_NMBR)')

    Server: Msg 7399, Level 16, State 1, Line 1
    OLE DB provider 'MSDASQL' reported an error.
    [OLE/DB provider returned message: [IBM][iSeries Access ODBC Driver][DB2 UDB]SQL0666 - Estimated query processing time 7211 exceeds limit 600.]


    What can I do for this?.
    I can able to run fine without subquery
    You suggestion appreciated.
    T's,
    Ravi

  2. #2
    Join Date
    Nov 2002
    Posts
    231
    I changed the SQL Server Properties in Connection
    "Remote server connection " into 7300(default 600). Now it is working
    fine.
    Ravi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •