all groups > sql server connect > april 2007 >
You're in the

sql server connect

group:

SQL 2005 64bit ODBC Connections to AS400


SQL 2005 64bit ODBC Connections to AS400 RichardT
4/23/2007 11:04:03 PM
sql server connect:
I'm having problems setting up an ODBC Connection to AS400
The server is Windows 2003 R2 64 bit with SQL 2005 SP1 Standard Edition
(64bit)

Using the Iseries Access ODBC drivers I've created a system DSN called
MSSQL_GACUPR01 (I have both 64 and 32 bit drivers from IBM and have each)

From there i've created a Linked server using SQL Native client:

EXEC master.dbo.sp_addlinkedserver @server = N'CTSACURITYINT',
@srvproduct=N'DB2', @provider=N'SQLNCLI', @datasrc=N'MSSQL_GACUPR01'

However I get the error:


OLE DB provider "SQLNCLI" for linked server "CTSACURITYINT" returned message
"Login timeout expired".
OLE DB provider "SQLNCLI" for linked server "CTSACURITYINT" returned message
"An error has occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.".
Msg 53, Level 16, State 1, Line 0
Named Pipes Provider: Could not open a connection to SQL Server [53].


RE: SQL 2005 64bit ODBC Connections to AS400 RichardT
4/23/2007 11:44:01 PM
With Named pipes turned off I get the error,:

OLE DB provider "SQLNCLI" for linked server "CTSACURITYINT" returned message
"Login timeout expired".
OLE DB provider "SQLNCLI" for linked server "CTSACURITYINT" returned message
"An error has occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.".
Msg 11001, Level 16, State 1, Line 0
TCP Provider: No such host is known.


[quoted text, click to view]
RE: SQL 2005 64bit ODBC Connections to AS400 RichardT
4/24/2007 12:18:01 AM
The host DB2 machine can be pinged from the SQL 2005 server and name
resolution is working corrrectly

[quoted text, click to view]
Re: SQL 2005 64bit ODBC Connections to AS400 Bindesh Vijayan[MSFT]
4/25/2007 12:08:31 AM
Did the DSN test successfully. If yes, then go ahead and create the linked
server using Management studio and check the behavior.
I guess we are missing some additional attributes in the linked server
properties(if the DSN is successful).


--
Bindesh Vijayan- SQL Developer Support
[This posting is provided "AS IS" with no warranties, and confers no rights]

[quoted text, click to view]
Re: SQL 2005 64bit ODBC Connections to AS400 RichardT
4/25/2007 6:10:01 PM
Hi,

If I try it on a 32bit SQl 2005 instance on the same 64 bit windows server
using the Microsoft OLE DB provider for ODBC Drivers for the linked server,
it works correctly.

I'm not sure how to test the DSN connection as the ISeries ODBC driver
doesn't provide this functionality.

Thanks, Richard


[quoted text, click to view]
Re: SQL 2005 64bit ODBC Connections to AS400 RichardT
5/15/2007 3:51:01 AM
Finally had success using the ISeries OLE DB provider MSDASQL
however it did take a bit of work figuring Component services permissions
for the OLE DB instance.

[quoted text, click to view]
richard any update on this issue arun
5/17/2007 6:47:11 PM
Richard,
I am also facing the same issue. Did u got any solution for this?

EggHeadCafe.com - .NET Developer Portal of Choice
Richard any update on this arun
5/17/2007 6:49:59 PM
Richard,
I am also facing the same issue. Have you got any fix for this?

EggHeadCafe.com - .NET Developer Portal of Choice
AddThis Social Bookmark Button