Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Linked server between sql server 2008 64 bit to post gre sql 32 bit


Linked server between sql server 2008 64 bit to post gre sql 32 bit

Author
Message
Codezilla-292868
Codezilla-292868
SSC-Enthusiastic
SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)

Group: General Forum Members
Points: 116 Visits: 400
We have a Post Gre SQL running on a 32 bit machine. I need to create a linked server from a SQL server 2008 R2 instance on a 64 bit windows 2008 machine to a post Gre SQL on 32 bit machine. The post gre sql is on 8.1 version.

I created system DSN using the odbc driver downloaded from this link
http://code.google.com/p/visionmap/wiki/psqlODBC

The connection works fine on the DSN.

The linked server gets created. But when I test the linked server I get the following error:

Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server " TEST".
OLE DB provider "MSDASQL" for linked server " TEST" returned message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified". (Microsoft SQL Server, Error: 7303)



I am not sure if the driver I am using the problem or is there some other issue with my script.

Here is the script I used to creating the linked server:

EXEC master.dbo.sp_addlinkedserver
@server = N'TEST',
@srvproduct=N'PostgreSQL35W',
@provider=N'MSDASQL',
@provstr=N'Driver=PostgreSQL 64-bit ODBC Drivers;uid=lichen;Server=
rtserver;Port=5432;database=uname;pwd=pwd'
/* For security reasons the linked server remote logins password is changed with ######## */
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'TEST'
,@useself=N'True',@locallogin=NULL,@rmtuser=uname,@rmtpassword=pwd


If there is anything you can help me with that would be great.

Thanks in Advance.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search