PostgreSQL Linked Server on SQL Server 2005 64-bit

Sorry for the cross-post here. I think the issue of being able to connect
to PostgreSQL from a 64-bit Windows system and in particular 64-bit SQL
Server 2005 has come up a couple of times on both PostGIS and PostgreSQL
ODBC groups. Jeff Crumbley kindly notified us that Microsoft released this
month a 64-bit OLEDB for ODBC driver which now makes connecting from a 64-it
SQL Server install via a Linked Server configuration possible. We thank him
greatly for that and have our linked servers working now.

We have posted the steps we took to achieve this on an Intel 64-bit SQL
Server 2005 install. So far seems to work well for us. We hope this
information is valuable to others.

http://www.postgresonline.com/journal/index.php?/archives/46 -Setting-up-Post
greSQL-as-a-Linked-Server-in-Microsoft-SQL-Server-64-bit.htm l

Thanks,
Leo and Regina
Paragon Corporation [ Sa, 26 April 2008 03:02 ] [ ID #1949878 ]

Re: PostgreSQL Linked Server on SQL Server 2005 64-bit

--===============1467735819==
Content-Type: multipart/alternative;
boundary="----=_Part_201_4078512.1209186016112"

------=_Part_201_4078512.1209186016112
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I have doubt about performance and scalability of this approach. Correct me
if I'm wrong but native PostgreSQL OLE DB Provider would have done work more
efficiently (see http://www.postgresql.org/about/news.895 - version 1.2.8
supports Linked Servers).

On Fri, Apr 25, 2008 at 6:02 PM, Paragon Corporation <
lr [at] paragoncorporation.com> wrote:

>
> Sorry for the cross-post here. I think the issue of being able to connect
> to PostgreSQL from a 64-bit Windows system and in particular 64-bit SQL
> Server 2005 has come up a couple of times on both PostGIS and PostgreSQL
> ODBC groups. Jeff Crumbley kindly notified us that Microsoft released
> this
> month a 64-bit OLEDB for ODBC driver which now makes connecting from a
> 64-it
> SQL Server install via a Linked Server configuration possible. We thank
> him
> greatly for that and have our linked servers working now.
>
> We have posted the steps we took to achieve this on an Intel 64-bit SQL
> Server 2005 install. So far seems to work well for us. We hope this
> information is valuable to others.
>
>
> http://www.postgresonline.com/journal/index.php?/archives/46 -Setting-up-Post
> greSQL-as-a-Linked-Server-in-Microsoft-SQL-Server-64-bit.htm l
>
> Thanks,
> Leo and Regina
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users [at] postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-user s
>

------=_Part_201_4078512.1209186016112
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I have doubt about performance and scalability of this approach. Correct me if I'm wrong but native PostgreSQL OLE DB Provider would have done work more efficiently (see http://www.postgresql.org/about/news.895 - version 1.2.8 supports Linked Servers).<br>
<br>
<div class="gmail_quote">On Fri, Apr 25, 2008 at 6:02 PM, Paragon Corporation <lr [at] paragoncorporation.com> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Sorry for the cross-post here.  I think the issue of being able to connect<br>to PostgreSQL from a 64-bit Windows system and in particular 64-bit SQL<br>
Server 2005 has come up a couple of times on both PostGIS and PostgreSQL<br>ODBC groups.  Jeff Crumbley kindly notified us that Microsoft released this<br>month a 64-bit OLEDB for ODBC driver which now makes connecting from a 64-it<br>
SQL Server install via a Linked Server configuration possible.  We thank him<br>greatly for that and have our linked servers working now.<br><br>We have posted the steps we took to achieve this on an Intel 64-bit SQL<br>Server 2005 install.  So far seems to work well for us.  We hope this<br>
information is valuable to others.<br><br><a href="http://www.postgresonline.com/journal/index.php?/archives/46-Setting-up-PostgreSQL-as-a-Linked-Server-in-Microsoft-SQL-Server-64-bit.html" target="_blank"> http://www.postgresonline.com/journal/index.php?/archives/46 -Setting-up-Post<br>
greSQL-as-a-Linked-Server-in-Microsoft-SQL-Server-64-bit.htm l</a><br><br>Thanks,<br>Leo and Regina<br><br><br>_______________________________________________<br>postgis-users mailing list<br>postgis-users [at] postgis.refractions.net<br>
http://postgis.refractions.net/mailman/listinfo/postgis-user s<br></blockquote></div><br>

------=_Part_201_4078512.1209186016112--

--===============1467735819==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
postgis-users mailing list
postgis-users [at] postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-user s

--===============1467735819==--
Konstantin Izmailov [ Sa, 26 April 2008 07:00 ] [ ID #1949879 ]

RE: PostgreSQL Linked Server on SQL Server 2005 64-bit

This is a multi-part message in MIME format.

--===============1271532918==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_000B_01C8A756.4A0B74F0"

This is a multi-part message in MIME format.

------=_NextPart_000_000B_01C8A756.4A0B74F0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Konstantin,

We'll have to take a look at that. I always thought that the PostgreSQL OLE
DB provider was less tested and robust than the ODBC one, but I have to
admit its been a while since we have looked at it. Last I tried it which
was awhile ago, I couldn't get it to go in a linked server configuration or
for SSIS processing. Things have probably changed as you mention.

I'll have to revisit this.

Thanks for the suggestion.

Regina

_____

From: postgis-users-bounces [at] postgis.refractions.net
[mailto:postgis-users-bounces [at] postgis.refractions.net] On Behalf Of
Konstantin Izmailov
Sent: Saturday, April 26, 2008 1:00 AM
To: PostGIS Users Discussion
Cc: pgsql-odbc [at] postgresql.org
Subject: Re: [postgis-users] PostgreSQL Linked Server on SQL Server 2005
64-bit


I have doubt about performance and scalability of this approach. Correct me
if I'm wrong but native PostgreSQL OLE DB Provider would have done work more
efficiently (see http://www.postgresql.org/about/news.895 - version 1.2.8
supports Linked Servers).


On Fri, Apr 25, 2008 at 6:02 PM, Paragon Corporation
<lr [at] paragoncorporation.com> wrote:



Sorry for the cross-post here. I think the issue of being able to connect
to PostgreSQL from a 64-bit Windows system and in particular 64-bit SQL
Server 2005 has come up a couple of times on both PostGIS and PostgreSQL
ODBC groups. Jeff Crumbley kindly notified us that Microsoft released this
month a 64-bit OLEDB for ODBC driver which now makes connecting from a 64-it
SQL Server install via a Linked Server configuration possible. We thank him
greatly for that and have our linked servers working now.

We have posted the steps we took to achieve this on an Intel 64-bit SQL
Server 2005 install. So far seems to work well for us. We hope this
information is valuable to others.

http://www.postgresonline.com/journal/index.php?/archives/46 -Setting-up-Post
<http://www.postgresonline.com/journal/index.php?/archives/46-Setting-up-Pos
tgreSQL-as-a-Linked-Server-in-Microsoft-SQL-Server-64-bit.ht ml>
greSQL-as-a-Linked-Server-in-Microsoft-SQL-Server-64-bit.htm l

Thanks,
Leo and Regina


_______________________________________________
postgis-users mailing list
postgis-users [at] postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-user s




------=_NextPart_000_000B_01C8A756.4A0B74F0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.6000.16640" name=3DGENERATOR></HEAD>
<BODY>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D760342608-26042008><FONT =
face=3DArial
color=3D#0000ff size=3D2>Konstantin,</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D760342608-26042008><FONT =
face=3DArial
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D760342608-26042008><FONT =
face=3DArial
color=3D#0000ff size=3D2>We'll have to take a look at that.  I =
always thought
that the PostgreSQL OLE DB provider was less tested and robust than the =
ODBC
one, but I have to admit its been a while since we have looked at
it.   Last I tried it which was awhile ago, I couldn't =
get it to
go in a linked server configuration or for SSIS processing.   =
Things
have probably changed as you mention.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D760342608-26042008><FONT =
face=3DArial
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D760342608-26042008><FONT =
face=3DArial
color=3D#0000ff size=3D2>I'll have to revisit this.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D760342608-26042008><FONT =
face=3DArial
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D760342608-26042008><FONT =
face=3DArial
color=3D#0000ff size=3D2>Thanks for the suggestion.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D760342608-26042008><FONT =
face=3DArial
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D760342608-26042008><FONT =
face=3DArial
color=3D#0000ff size=3D2>Regina</FONT></SPAN></DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B>
postgis-users-bounces [at] postgis.refractions.net
[mailto:postgis-users-bounces [at] postgis.refractions.net] <B>On Behalf Of
</B>Konstantin Izmailov<BR><B>Sent:</B> Saturday, April 26, 2008 1:00
AM<BR><B>To:</B> PostGIS Users Discussion<BR><B>Cc:</B>
pgsql-odbc [at] postgresql.org<BR><B>Subject:</B> Re: [postgis-users] =
PostgreSQL
Linked Server on SQL Server 2005 64-bit<BR></FONT><BR></DIV>
<DIV></DIV>I have doubt about performance and scalability of this =
approach.
Correct me if I'm wrong but native PostgreSQL OLE DB Provider would have =
done
work more efficiently (see <A
href=3D"http://www.postgresql.org/about/news.895">http://www .postgresql.o=
rg/about/news.895</A> -
version 1.2.8 supports Linked Servers).<BR><BR>
<DIV class=3Dgmail_quote>On Fri, Apr 25, 2008 at 6:02 PM, Paragon =
Corporation
<<A =
href=3D"mailto:lr [at] paragoncorporation.com">lr [at] paragoncorporat ion.com</A>&g=
t;
wrote:<BR>
<BLOCKQUOTE class=3Dgmail_quote
style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc =
1px solid"><BR>Sorry
for the cross-post here.  I think the issue of being able to
connect<BR>to PostgreSQL from a 64-bit Windows system and in =
particular 64-bit
SQL<BR>Server 2005 has come up a couple of times on both PostGIS and
PostgreSQL<BR>ODBC groups.  Jeff Crumbley kindly notified us that =

Microsoft released this<BR>month a 64-bit OLEDB for ODBC driver which =
now
makes connecting from a 64-it<BR>SQL Server install via a Linked =
Server
configuration possible.  We thank him<BR>greatly for that and =
have our
linked servers working now.<BR><BR>We have posted the steps we took to =
achieve
this on an Intel 64-bit SQL<BR>Server 2005 install.  So far seems =
to work
well for us.  We hope this<BR>information is valuable to
others.<BR><BR><A
=
href=3D"http://www.postgresonline.com/journal/index.php?/arc hives/46-Sett=
ing-up-PostgreSQL-as-a-Linked-Server-in-Microsoft-SQL-Server -64-bit.html"=

=
target=3D_blank>http://www.postgresonline.com/journal/index. php?/archives=
/46-Setting-up-Post<BR>greSQL-as-a-Linked-Server-in-Microsoft-SQL-Server-=
64-bit.html</A><BR><BR>Thanks,<BR>Leo
and
=
Regina<BR><BR><BR>_______________________________________________<BR>post=
gis-users
mailing list<BR><A
=
href=3D"mailto:postgis-users [at] postgis.refractions.net">postgi s-users [at] postg=
is.refractions.net</A><BR><A
href=3D"http://postgis.refractions.net/mailman/listinfo/post gis-users" =

=
target=3D_blank>http://postgis.refractions.net/mailman/listi nfo/postgis-u=
sers</A><BR></BLOCKQUOTE></DIV><BR></BODY></HTML>

------=_NextPart_000_000B_01C8A756.4A0B74F0--



--===============1271532918==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
postgis-users mailing list
postgis-users [at] postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-user s

--===============1271532918==--
Paragon Corporation [ Sa, 26 April 2008 10:30 ] [ ID #1949880 ]

RE: PostgreSQL Linked Server on SQL Server 2005 64-bit

This is a multi-part message in MIME format.

--===============0983257531==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_001C_01C8A757.8DB2AE70"

This is a multi-part message in MIME format.

------=_NextPart_000_001C_01C8A757.8DB2AE70
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

On further inspection I see the one you are pointing at is a commercial
implementation of the PostgreSQL OLE DB Provider and not the one packaged
with PostgreSQL source and binaries. We haven't tried that one at all so
can't vouch for its strength compared to using ODBC over the OLEDB Provider
for ODBC.

A really robust solution I would suspect would be a Native SQL Server .NET
provider for PostgreSQL, but I haven't figured out how all that works to see
if the NpgSQL.NET driver can be fashioned as such. I think native SQL
Server for Oracle and DB2 providers exist.

Thanks,
Regina


_____

From: postgis-users-bounces [at] postgis.refractions.net
[mailto:postgis-users-bounces [at] postgis.refractions.net] On Behalf Of
Konstantin Izmailov
Sent: Saturday, April 26, 2008 1:00 AM
To: PostGIS Users Discussion
Cc: pgsql-odbc [at] postgresql.org
Subject: Re: [postgis-users] PostgreSQL Linked Server on SQL Server 2005
64-bit


I have doubt about performance and scalability of this approach. Correct me
if I'm wrong but native PostgreSQL OLE DB Provider would have done work more
efficiently (see http://www.postgresql.org/about/news.895 - version 1.2.8
supports Linked Servers).


On Fri, Apr 25, 2008 at 6:02 PM, Paragon Corporation
<lr [at] paragoncorporation.com> wrote:



Sorry for the cross-post here. I think the issue of being able to connect
to PostgreSQL from a 64-bit Windows system and in particular 64-bit SQL
Server 2005 has come up a couple of times on both PostGIS and PostgreSQL
ODBC groups. Jeff Crumbley kindly notified us that Microsoft released this
month a 64-bit OLEDB for ODBC driver which now makes connecting from a 64-it
SQL Server install via a Linked Server configuration possible. We thank him
greatly for that and have our linked servers working now.

We have posted the steps we took to achieve this on an Intel 64-bit SQL
Server 2005 install. So far seems to work well for us. We hope this
information is valuable to others.

http://www.postgresonline.com/journal/index.php?/archives/46 -Setting-up-Post
<http://www.postgresonline.com/journal/index.php?/archives/46-Setting-up-Pos
tgreSQL-as-a-Linked-Server-in-Microsoft-SQL-Server-64-bit.ht ml>
greSQL-as-a-Linked-Server-in-Microsoft-SQL-Server-64-bit.htm l

Thanks,
Leo and Regina


_______________________________________________
postgis-users mailing list
postgis-users [at] postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-user s




------=_NextPart_000_001C_01C8A757.8DB2AE70
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.6000.16640" name=3DGENERATOR></HEAD>
<BODY>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN
class=3D416103208-26042008>On further inspection I see the one you are =
pointing at
is a commercial implementation of the PostgreSQL OLE DB Provider =
and  not
the one packaged with PostgreSQL source and binaries.  We haven't =
tried
that one at all so can't vouch for its strength compared to using ODBC =
over the
OLEDB Provider for ODBC.</SPAN></FONT></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff
size=3D2></FONT> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D416103208-26042008><FONT =
face=3DArial
color=3D#0000ff size=3D2>A really robust solution I would suspect would =
be a Native
SQL Server .NET provider for PostgreSQL, but I haven't figured out how =
all that
works to see if the NpgSQL.NET driver can be fashioned as such.  I
think native SQL Server  for Oracle and DB2 providers
exist.</FONT></SPAN><SPAN class=3D416103208-26042008><FONT face=3DArial
color=3D#0000ff size=3D2></FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D416103208-26042008><FONT =
face=3DArial
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D416103208-26042008><FONT =
face=3DArial
color=3D#0000ff size=3D2>Thanks,</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D416103208-26042008><FONT =
face=3DArial
color=3D#0000ff size=3D2>Regina</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN
class=3D416103208-26042008></SPAN></FONT> </DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B>
postgis-users-bounces [at] postgis.refractions.net
[mailto:postgis-users-bounces [at] postgis.refractions.net] <B>On Behalf Of
</B>Konstantin Izmailov<BR><B>Sent:</B> Saturday, April 26, 2008 1:00
AM<BR><B>To:</B> PostGIS Users Discussion<BR><B>Cc:</B>
pgsql-odbc [at] postgresql.org<BR><B>Subject:</B> Re: [postgis-users] =
PostgreSQL
Linked Server on SQL Server 2005 64-bit<BR></FONT><BR></DIV>
<DIV></DIV>I have doubt about performance and scalability of this =
approach.
Correct me if I'm wrong but native PostgreSQL OLE DB Provider would have =
done
work more efficiently (see <A
href=3D"http://www.postgresql.org/about/news.895">http://www .postgresql.o=
rg/about/news.895</A> -
version 1.2.8 supports Linked Servers).<BR><BR>
<DIV class=3Dgmail_quote>On Fri, Apr 25, 2008 at 6:02 PM, Paragon =
Corporation
<<A =
href=3D"mailto:lr [at] paragoncorporation.com">lr [at] paragoncorporat ion.com</A>&g=
t;
wrote:<BR>
<BLOCKQUOTE class=3Dgmail_quote
style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc =
1px solid"><BR>Sorry
for the cross-post here.  I think the issue of being able to
connect<BR>to PostgreSQL from a 64-bit Windows system and in =
particular 64-bit
SQL<BR>Server 2005 has come up a couple of times on both PostGIS and
PostgreSQL<BR>ODBC groups.  Jeff Crumbley kindly notified us that =

Microsoft released this<BR>month a 64-bit OLEDB for ODBC driver which =
now
makes connecting from a 64-it<BR>SQL Server install via a Linked =
Server
configuration possible.  We thank him<BR>greatly for that and =
have our
linked servers working now.<BR><BR>We have posted the steps we took to =
achieve
this on an Intel 64-bit SQL<BR>Server 2005 install.  So far seems =
to work
well for us.  We hope this<BR>information is valuable to
others.<BR><BR><A
=
href=3D"http://www.postgresonline.com/journal/index.php?/arc hives/46-Sett=
ing-up-PostgreSQL-as-a-Linked-Server-in-Microsoft-SQL-Server -64-bit.html"=

=
target=3D_blank>http://www.postgresonline.com/journal/index. php?/archives=
/46-Setting-up-Post<BR>greSQL-as-a-Linked-Server-in-Microsoft-SQL-Server-=
64-bit.html</A><BR><BR>Thanks,<BR>Leo
and
=
Regina<BR><BR><BR>_______________________________________________<BR>post=
gis-users
mailing list<BR><A
=
href=3D"mailto:postgis-users [at] postgis.refractions.net">postgi s-users [at] postg=
is.refractions.net</A><BR><A
href=3D"http://postgis.refractions.net/mailman/listinfo/post gis-users" =

=
target=3D_blank>http://postgis.refractions.net/mailman/listi nfo/postgis-u=
sers</A><BR></BLOCKQUOTE></DIV><BR></BODY></HTML>

------=_NextPart_000_001C_01C8A757.8DB2AE70--



--===============0983257531==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
postgis-users mailing list
postgis-users [at] postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-user s

--===============0983257531==--
Paragon Corporation [ Sa, 26 April 2008 10:39 ] [ ID #1949881 ]
Datenbanken » gmane.comp.db.postgresql.odbc » PostgreSQL Linked Server on SQL Server 2005 64-bit

Vorheriges Thema: UTF8 server & "ANSI"-Client: Which Driver?
Nächstes Thema: ODBC NLS Problem