Microsoft OLE DB and DB2 connectivity.
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Microsoft OLE DB and DB2 connectivity.

 
Post new topic   Reply to topic    Windows Server Forum Index -> Host Integration Server
Author Message
Jeff York
Guest





Posted: Fri Apr 29, 2005 4:53 pm    Post subject: Microsoft OLE DB and DB2 connectivity. Reply with quote

Can someone please take a look at this and give me some suggestions
I set up an OLE DB dsn using the HIS client tool. I copied the string from
teh .udl file and am trying within TSQL to create a linked server to a DB@
database on an AS400. MY error message is : Error 7330: could not fetch a row
from OLE DB provider 'unknown' I would love follow up questions as I am very
new at non native linked servers. Below is how I set up the server (wthout
the login proc.)Thanks!

EXEC sp_addlinkedserver
@server = 's10ce05e',
@srvproduct = 'Microsoft OLE DB Provider for DB2',
@Provider='DB2OLEDB',
@provstr =
'Provider=DB2OLEDB;Persist Security Info=False;User ID=YORK2323A;Initial
Catalog=S10CE05E;Data Source=TEST;Mode=ReadWrite;Network Transport
Library=TCPIP;Network Address=10.16.128.65;Package Collection=; Default
Schema=ALTLIB'
GO
Back to top
Charles Ezzell (MSFT)
Guest





Posted: Mon May 02, 2005 4:52 pm    Post subject: Re: Microsoft OLE DB and DB2 connectivity. Reply with quote

I've personally never used TSQL to create a linked server (until today <g>),
but right-click and add it manually.

But, here goes my attempt (HIS 2004, 2000 does not have the "Connection
Pooling" property):
USE master
GO
EXEC sp_dropserver 'OSPRY_TSQL', 'droplogins'
GO
EXEC sp_addlinkedserver
@server = 'OSPRY_TSQL',
@srvproduct = 'Microsoft OLE DB Provider for DB2',
@provider = 'DB2OLEDB',
@provstr='User ID=CHARLIEE;Password=charliee;Initial
Catalog=S10D823B;Network Transport Library=TCP;Host CCSID=37;PC Code
Page=1252;Network Address=OSPRY;Network Port=446;Package
Collection=CHARLIEE;Default Schema=CHARLIEE;Process Binary as
Character=False;Units of Work=RUW;Default Qualifier=F58BMCPP;DBMS
Platform=DB2/AS400;Persist Security Info=True;Connection Pooling=True'
GO

Then:
select * from OSPRY_TSQL.S10D823B.CHARLIEE.MSDB2BANK

returns:
JONES 2643
SMITH 10000
DOE 5000

Note that I do not have the "Provider=DB2OLEDB" in the provider string.

HTH,
Charles


"Jeff York" <JeffYork@discussions.microsoft.com> wrote in message
news:16EAC315-A1D8-4480-86EE-CB637B309590@microsoft.com...
Quote:
Can someone please take a look at this and give me some suggestions
I set up an OLE DB dsn using the HIS client tool. I copied the string from
teh .udl file and am trying within TSQL to create a linked server to a
DB@
database on an AS400. MY error message is : Error 7330: could not fetch a
row
from OLE DB provider 'unknown' I would love follow up questions as I am
very
new at non native linked servers. Below is how I set up the server
(wthout
the login proc.)Thanks!

EXEC sp_addlinkedserver
@server = 's10ce05e',
@srvproduct = 'Microsoft OLE DB Provider for DB2',
@Provider='DB2OLEDB',
@provstr =
'Provider=DB2OLEDB;Persist Security Info=False;User ID=YORK2323A;Initial
Catalog=S10CE05E;Data Source=TEST;Mode=ReadWrite;Network Transport
Library=TCPIP;Network Address=10.16.128.65;Package Collection=; Default
Schema=ALTLIB'
GO
Back to top
fcho



Joined: 16 Jun 2005
Posts: 1

Posted: Thu Jun 16, 2005 1:47 pm    Post subject: re:Microsoft OLE DB and DB2 connectivity. Reply with quote

hi Jeff York,
I facing the some problem also, is your problem solve? Appreciate if you can share it with me.
Thank you.
Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    Windows Server Forum Index -> Host Integration Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB