If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Linked server for DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-18-04, 16:28
hong wang hong wang is offline
Registered User
 
Join Date: Nov 2004
Posts: 3
Linked server for DB2

Hi,

I have to set up a linked server between SQL Server 2000 and DB2 AS/400. I
have installed a DB2 client (version 7) on the sql server, then I set up the
linked server as following:
provider name = IBM OLE DB provider for DB2
production name = IBMDADB2
datane source = USCAGS03
provider string = UID=xxxx;PWD=xxxxx

Then I ran this query in SQL Server:
SELECT *
FROM OPENQUERY(TEST1, 'SELECT * FROM CLOCFILESK.MPUMFG05_PEOPLE')

and I got errors:
Server: Msg 7357, Level 16, State 2, Line 1
Could not process object 'SELECT * FROM CLOCFILESK.MPUMFG05_PEOPLE'. The OLE
DB provider 'IBMDADB2' indicates that the object has no columns.
OLE DB error trace [Non-interface error: OLE DB provider unable to process
object, since the object has no columnsProviderName='IBMDADB2', Query=SELECT
* FROM CLOCFILESK.MPUMFG05_PEOPLE'].


Anybody know why I am getting this error? Thanks.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On