Error while executing OpenQuery - Server: Msg 7399, Level 16, State 1, Line 4



I execute an OpenQuery to fetch data from a DB2 database into the SQL
Server 2000 database for further processing. This is a daily process -
and I regularly get the error message

Server: Msg 7399, Level 16, State 1, Line 4
OLE DB provider 'IBMDADB2' reported an error.
[OLE/DB provider returned message: SQL30081N A communication error has
been detected. Communication protocol being used: "TCP/IP".
Communication API being used: "SOCKETS". Location where the error was
detected: "171.177.121.137". Communication function detecting the
error: "connect". Protocol specific error code(s): "10061", "*", "*".
SQLSTATE=08001
]
OLE DB error trace [OLE/DB Provider 'IBMDADB2' IDBInitialize::Initialize
returned 0x80004005: ].

This brings the server down and we have to reboot. After the server is
rebooted, and I execute the query, it brings in the data without any
issues.

I executed the query from a production server, inside of a job,but as it
affected other processes with the server getting down, I moved the query
to a developement server - which is less loaded. As this also did not
work, today i tried doing it from another server, which is practically
not used for any processes, but this also failed.

There are 101 columns in the query. Here is number of rows, the query
fetched over the last week:

2006-11-30 00:00:00.000 154813
2006-12-01 00:00:00.000 114673
2006-12-02 00:00:00.000 94417
2006-12-05 00:00:00.000 236134
2006-12-06 00:00:00.000 137332

While today,I was trying to fetch 155099 rows

2006-12-07 00:00:00.000 155099

Here is the query:

SELECT *
INTO test..plastics_temp
FROM OPENQUERY([BACARDI],'SELECT
ACCT_NO,
MAIL_DT ,
CH_NO,
AVAIL_CR_AM,
CREDIT_LINE_AM,
ACCT_STS_CD,
CITY_NM,
ST_CD,
ZIP_CD,
COUNTRY_CD,
POSTAL_CD,
SSN_NO,
OPEN_DT ,
cast(BIRTH_DT AS CHAR(10)) AS BIRTH_DT,
MAIL_CD,
PMT_NOW_DUE_AM,
HOME_PHON_MAIL_NO,
WORK_PHONE_NO,
REISSUE_DT,
DLQ_30_CT,
DLQ_30_AM,
DLQ_60_CT,
DLQ_60_AM,
DLQ_90_CT,
DLQ_90_AM,
DLQ_HIST_13M_CD,
EXP_DT,
WORK_CARD,
HIGH_BAL_EVER_AM,
LST_YR_FC_AM ,
CAT1_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.vru_plastics
WHERE CAST(mnfrm_process_dt AS DATE)>=''12/07/2006''
and CAST(mnfrm_process_dt AS DATE)<''12/08/2006''')



CAN ANY ONE BE ABLE TO HELP ON IT - AS TO WHY WE ARE GETTING THIS ERROR.


Vaishali Bhatt

*** Sent via Developersdex http://www.developersdex.com ***
.



Relevant Pages

  • Re: Performance Benchmarks?
    ... Are attribute relationships defined properly on the dimensions? ... If you run Profiler against the server, how long is spent in "Query ... I have created aggregations (Partitions tab in cube design). ...
    (microsoft.public.sqlserver.olap)
  • Re: Action pass-through with a form variable Access 2003
    ... variables don't exist on the server where it will execute. ... You can use variables in a regular query that will first be processed by the ... Jet or ACCDB database engine before being handed over to the ODBC driver. ...
    (comp.databases.ms-access)
  • High CPU in client (Excel, OWC, Proclarity, etc.) accessing Analysis Services
    ... the OWC10 with 3 dimensions on the row axis, ... The largest size of any of these 4 dimensions < 360 members. ... Performance Guide to optimize the query, the cube, the server, etc. ...
    (microsoft.public.sqlserver.olap)
  • Re: Action pass-through with a form variable Access 2003
    ... You can't "integrate variables into a pass-through query" because those ... variables don't exist on the server where it will execute. ...
    (comp.databases.ms-access)
  • Re: [PHP] how to curl
    ... i have a few questions as well; is the query being executed on the provider ... consumer (the one you intend to execute the curl request from)? ... Yes I'm doing on the both the server. ... And when a consumer server will send ...
    (php.general)