× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Can you put your where clause within the select statement so you don't pull back the entire table?

Something like

update j set j.qzfy = 14
from openquery(S1000BB2M, 'select * from patftp.f594063 where qz$wsa=2604378')

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-
bounces@xxxxxxxxxxxx] On Behalf Of Jim Oberholtzer
Sent: Wednesday, August 21, 2013 11:17 AM
To: Midrange Systems Technical Discussion
Subject: DB2OLEDB update attempt

Folks:

We are trying to have MS SQL server connect to IBM i DB/2 ( V5R4M5 btw )
to update several ( under 30 ) rows. We get the following messages, and
I can't find any references to the SQLSTATE: HY0000. It takes about
30 seconds to fail with the following

OLE DB provider "DB2OLEDB" for linked server "S10xxxxx" returned message
"The maximum number of statements has been reached for the current
connection. SQLSTATE: HY000, SQLCODE: -1500".

Msg 7320, Level 16, State 2, Line 1

Cannot execute the query "select * from patftp.f594063" against OLE DB
provider "DB2OLEDB" for linked server "S10xxxxx".

updatej set j.qzfy = 14

from openquery(S100BB2M, 'select * from patftp.f594063') j

where j.qz$wsa = 2604378


Any ideas?

--
Jim Oberholtzer
Chief Technical Architect
Agile Technology Architects

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.