From pk2@o2.pl Fri Apr 29 00:31:11 2005 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F0E4E536F8 for ; Thu, 28 Apr 2005 21:31:11 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 70445-08 for ; Fri, 29 Apr 2005 00:31:10 +0000 (GMT) Received: from kogut.o2.pl (kogut.o2.pl [212.126.20.60]) by svr1.postgresql.org (Postfix) with ESMTP id 43403536F3 for ; Thu, 28 Apr 2005 21:31:09 -0300 (ADT) Received: from pg223.warszawa.cvx.ppp.tpnet.pl (pg223.warszawa.cvx.ppp.tpnet.pl [213.76.102.223]) by kogut.o2.pl (o2.pl Mailer 2.0.1) with ESMTP id 02FC8CBA37 for ; Fri, 29 Apr 2005 02:31:05 +0200 (CEST) Subject: PostgreSQL - linked with MSSQL From: "pk2@o2.pl" To: pgsql-odbc@postgresql.org Content-Type: multipart/alternative; boundary="=-gNJ0Wo7/vUW5VbmWS0bm" Message-Id: <1114734737.4803.15.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-9.3.aur.2) Date: Fri, 29 Apr 2005 02:32:17 +0200 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.255 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, HTML_20_30, HTML_MESSAGE X-Spam-Level: ** X-Archive-Number: 200504/126 X-Sequence-Number: 5285 --=-gNJ0Wo7/vUW5VbmWS0bm Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello, nice to meet you! My name is Piotr. I live in Poland. I'm going to make a connection between PostgreSQL and MSSQL. I have WinXP+MSSQL2k+PostgreSQL 8.0.2 (psql, PgAdminIII), on the same machine. I need to import data from MSSQL to PostgreSQL or make SELECT from MSSQL beeing on PostgreSQL. That would be perfect (I mean beeing in Postgres and importing data from MSSQL. Then I tranform the data, make analysies). Another solution (less interesting for me but probably easier) would be linking Postgres Server in Ent. Manager. To be honest I'm a complete "green horn" when talking about configuring odbc/jdbc/ole db etc. Are you able to help me? Would you have enough patience? What information do you need from me? I'll describe everything I did in details. Thanks, Piotr. --=-gNJ0Wo7/vUW5VbmWS0bm Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hello, nice to meet you!

My name is Piotr. I live in Poland.

I'm going to make a connection between
PostgreSQL and MSSQL.
I have WinXP+MSSQL2k+PostgreSQL 8.0.2 (psql, PgAdminIII),
on the same machine.
I need to import data from MSSQL to PostgreSQL
or make SELECT from MSSQL beeing on PostgreSQL.
That would be perfect (I mean beeing in Postgres
and importing data from MSSQL. Then I tranform the data,
make analysies).
Another solution (less interesting for me but probably easier)
would be linking Postgres Server in Ent. Manager.
To be honest I'm a complete "green horn"
when talking about configuring odbc/jdbc/ole db etc.
Are you able to help me? Would you have enough patience?
What information do you need from me?
I'll describe everything I did in details.
Thanks,
Piotr. --=-gNJ0Wo7/vUW5VbmWS0bm-- From dev@archonet.com Fri Apr 29 10:50:27 2005 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 76F79536FB for ; Fri, 29 Apr 2005 07:50:27 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 72638-02 for ; Fri, 29 Apr 2005 10:50:24 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id AC81B52AA7 for ; Fri, 29 Apr 2005 07:50:23 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 2EB1C40DCAE; Fri, 29 Apr 2005 11:50:18 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 5453115EF8; Fri, 29 Apr 2005 11:49:27 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00727-05; Fri, 29 Apr 2005 11:49:27 +0100 (BST) Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id F29F215EDE; Fri, 29 Apr 2005 11:49:26 +0100 (BST) Message-ID: <42721147.5060001@archonet.com> Date: Fri, 29 Apr 2005 11:49:43 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pk2@o2.pl Cc: pgsql-odbc@postgresql.org Subject: Re: PostgreSQL - linked with MSSQL References: <1114734737.4803.15.camel@localhost.localdomain> <20050429014745.GC2115@localhost> <20050429102459.4922B16C00D@rekin13.go2.pl> In-Reply-To: <20050429102459.4922B16C00D@rekin13.go2.pl> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.054 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/129 X-Sequence-Number: 5288 pk2@o2.pl wrote: > Generally I would like to have the same possibility to make an: > INSERT INTO [Postgres_server].mydatabase.user.mytable > (id, data1, data2, data3) > SELECT > id, data1, data2, data3 > FROM [remote_mssql].remotedatabase.dbo.table2 The quick solution (and the one I always use) is to setup ODBC for postgresql, then create an MS-Access database that links to both. Add a bunch of queries/vba and you're done. -- Richard Huxton Archonet Ltd From merlin.moncure@rcsonline.com Fri Apr 29 13:28:58 2005 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8768C53246 for ; Fri, 29 Apr 2005 10:28:58 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 91854-09 for ; Fri, 29 Apr 2005 13:28:49 +0000 (GMT) Received: from Herge.rcsinc.local (mail.rcsonline.com [205.217.85.91]) by svr1.postgresql.org (Postfix) with ESMTP id A6DCF5364A for ; Fri, 29 Apr 2005 10:28:47 -0300 (ADT) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: PostgreSQL - linked with MSSQL Date: Fri, 29 Apr 2005 09:28:49 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Message-ID: <6EE64EF3AB31D5448D0007DD34EEB3415C26F1@Herge.rcsinc.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ODBC] PostgreSQL - linked with MSSQL Thread-Index: AcVMqXXQqxFpOkMsRjy+4SdvU+eQjAAE+27w From: "Merlin Moncure" To: "Richard Huxton" Cc: , X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.057 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/130 X-Sequence-Number: 5289 > pk2@o2.pl wrote: > > Generally I would like to have the same possibility to make an: > > INSERT INTO [Postgres_server].mydatabase.user.mytable > > (id, data1, data2, data3) > > SELECT > > id, data1, data2, data3 > > FROM [remote_mssql].remotedatabase.dbo.table2 >=20 > The quick solution (and the one I always use) is to setup ODBC for > postgresql, then create an MS-Access database that links to both. Add a > bunch of queries/vba and you're done. Another solution along the same vein is to use DTS (Data transformation services) to manipulate the data. The nice thing about dts is it can integrate right into the scheduler so you can 'publish' the data between different data sources. DTS is free with the desktop edition of sql server, :-). Merlin