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 > Informix > SQL to AS/400 using IBMDa400

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-29-04, 15:52
FCIB FCIB is offline
Registered User
 
Join Date: Sep 2003
Posts: 4
SQL to AS/400 using IBMDa400

I am trying to create a linked server to the AS/400. I use the following and it is added successfully or so I believe.

EXEC sp_addlinkedserver
@Server=IBMTL400,
@SrvProduct='IBM AS400 OLEDB Provider',
@Catalog='mylibrary',
@Provider=IBMDA400,
@Datasrc=PRODCL400,
@Provstr='Provider=IBMDA400.DataSource.1;Password= userpass;Persist Security Info=True;User ID=user;Data Source=PRODCL400;Catalog Library List=Mylibrary'

However when I attemt to execute a query on this server I get - cannot create an instance.

select * from OPENQUERY(IBMTL400,'SELECT * FROM tablename ')

Server: Msg 7302, Level 16, State 1, Line 1
Could not create an instance of OLE DB provider 'IBMDA400'.

I looked up this error and reregistered the msdaps.dll however the error still persists.

Do I need to create a logon before I can execute the query.

FCIB
Reply With Quote
  #2 (permalink)  
Old 03-29-04, 16:11
FCIB FCIB is offline
Registered User
 
Join Date: Sep 2003
Posts: 4
I have added a linked logon but the error still persists.
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