This is a multi-part message in MIME format.
------_=_NextPart_001_01C85246.861F2A1F
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
If you are just wanting to move the data (i.e., the structure uses
static) you could maybe explore using MS Access as an intermediary???
=20
=20
Cheers:
GREG COCKS
gcocks@stoller.com =20
=20
=20
=20
--------------------------------
=20
________________________________
From: Phillip Smith [mailto:phillip.smith@weatherbeeta.com.au]=20
Sent: Tuesday, January 08, 2008 3:21 PM
To: 'Amit Saha'; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Regarding Connectivity
=20
Not sure about using DTS to do it (only just starting playing with that
myself), but to get PostgreSQL data to a flat file for importing, you
could do something like:
=20
BEGIN;
SELECT col1, col2, col3, col7, col8, col9
INTO TEMP export
FROM Postgres_table
WHERE whatever =3D something;
COPY export TO '/path/to/save/exported/file.tsv';
COMMIT;
=20
I use this method in scripts to move data between databases on
PostgreSQL.
=20
Cheers,
~p
=20
-----Original Message-----
From: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Amit Saha
Sent: Tuesday, 8 January 2008 23:44
To: pgsql-odbc@postgresql.org
Subject: [ODBC] Regarding Connectivity
=20
Hi,
=20
I have one question regarding the connectivity to PostGreSQL Database.
=20
Question: Is it possible to connect to the PostGreSQL database through
Microsoft SQL Server 2000 version in the DTS Package.
There is a requirement to pull data from PoseGreSQL database into SQL
Server Database.
=20
In case, it's not possible, is there any way to export the data in a
flat file, so that I can use this for importing in SQL server database.
=20
Please let me know how should I go about that.
=20
Thanks
Amit
=20
THINK BEFORE YOU PRINT - Save paper if you don't really need to print
this e-mail.=20
*******************Confidentiality and Privilege
Notice*******************=20
The material contained in this message is privileged and confidential to
the addressee. If you are not the addressee indicated in this message or
responsible for delivery of the message to such person, you may not copy
or deliver this message to anyone, and you should destroy it and kindly
notify the sender by reply email.=20
Information in this message that does not relate to the official
business of Weatherbeeta must be treated as neither given nor endorsed
by Weatherbeeta. Weatherbeeta, its employees, contractors or associates
shall not be liable for direct, indirect or consequential loss arising
from transmission of this message or any attachments=20
------_=_NextPart_001_01C85246.861F2A1F
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>If you are just wanting to move the =
data
(i.e., the structure uses static) you could maybe explore using MS =
Access as an
intermediary???
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>
Roman">
style=3D'font-size:12.0pt;color:navy'>
=
face=3DArial>
style=3D'font-size:7.5pt;font-family:Arial;color:navy'>Cheer s:
nt>
color=3Dnavy>
face=3DArial>
style=3D'font-size:7.5pt;font-family:Arial;color:navy'>GREG =
COCKS
color=3Dnavy>
style=3D'font-size:
7.5pt;font-family:Arial;color:navy'>
href=3D"mailto:gcocks@stoller.com">
color=3Dnavy face=3DArial>
style=3D'font-family:Arial;color:navy;text-decoration:
none'>gcocks@stoller.com
color=3Dnavy>
Roman">
style=3D'font-size:12.0pt;color:navy'>
=
Roman">
style=3D'font-size:12.0pt;color:navy'>
=
Roman">
style=3D'font-size:12.0pt;color:navy'>
=
face=3DArial>
style=3D'font-size:7.5pt;font-family:Arial;color:navy'>----- -------------=
--------------
color=3Dnavy>
Roman">
style=3D'font-size:12.0pt;color:navy'>
=
size=3D3
face=3D"Times New Roman">
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:
size=3D2
face=3DTahoma> =
Phillip Smith
[mailto:phillip.smith@weatherbeeta.com.au]
Sent: Tuesday, January =
08, 2008
3:21 PM
To: 'Amit Saha';
pgsql-odbc@postgresql.org
Subject: Re: [ODBC] =
Regarding
Connectivity
style=3D'font-size:
12.0pt'>
lang=3DEN-AU
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Not sure about =
using DTS
to do it (only just starting playing with that myself), but to get =
PostgreSQL
data to a flat file for importing, you could do something =
like:
lang=3DEN-AU>
lang=3DEN-AU
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>
nt>
lang=3DEN-AU>
lang=3DEN-AU
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>BEGI N;
nt>
lang=3DEN-AU>
lang=3DEN-AU
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>SELE CT col1, =
col2, col3,
col7, col8, col9
lang=3DEN-AU
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>INTO TEMP =
export
lang=3DEN-AU>
lang=3DEN-AU
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>FROM =
Postgres_table
lang=3DEN-AU>
lang=3DEN-AU
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>WHER E whatever =
=3D
something;
lang=3DEN-AU
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>COPY export TO
‘/path/to/save/exported/file.tsv’;
lang=3DEN-AU>
lang=3DEN-AU
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>COMM IT;
ont>
lang=3DEN-AU>
lang=3DEN-AU
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>
nt>
lang=3DEN-AU>
lang=3DEN-AU
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>I use this =
method in
scripts to move data between databases on PostgreSQL.
lang=3DEN-AU>
lang=3DEN-AU
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>
nt>
lang=3DEN-AU>
lang=3DEN-AU
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Chee rs,
ont>
lang=3DEN-AU>
lang=3DEN-AU
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>~p<=
span
lang=3DEN-AU>
lang=3DEN-AU
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>
nt>
lang=3DEN-AU>
0in 4.0pt'>
style=3D'font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----
From:
pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] =
style=3D'font-weight:bold'>On Behalf Of Amit Saha
Sent: Tuesday, 8 January =
2008
23:44
To: =
pgsql-odbc@postgresql.org
Subject: [ODBC] Regarding
Connectivity
lang=3DEN-AU
style=3D'font-size:12.0pt'>
lang=3DEN-AU
style=3D'font-size:12.0pt'>
lang=3DEN-AU
style=3D'font-size:12.0pt'>Hi,
lang=3DEN-AU
style=3D'font-size:12.0pt'>
lang=3DEN-AU
style=3D'font-size:12.0pt'>I have one question regarding the =
connectivity to
PostGreSQL Database.
lang=3DEN-AU
style=3D'font-size:12.0pt'>
Roman">
lang=3DEN-AU =
style=3D'font-size:12.0pt'>Question:
lang=3DEN-AU> Is it possible to connect to the PostGreSQL database =
through Microsoft
SQL Server 2000 version in the DTS Package.
lang=3DEN-AU
style=3D'font-size:12.0pt'>There is a requirement to pull data from =
PoseGreSQL
database into SQL Server Database.
lang=3DEN-AU
style=3D'font-size:12.0pt'>
lang=3DEN-AU
style=3D'font-size:12.0pt'>In case, it's not possible, is there any way =
to export
the data in a flat file, so that I can use this for importing in SQL =
server
database.
lang=3DEN-AU
style=3D'font-size:12.0pt'>
lang=3DEN-AU
style=3D'font-size:12.0pt'>Please let me know how should I go about =
that.
lang=3DEN-AU
style=3D'font-size:12.0pt'>
lang=3DEN-AU
style=3D'font-size:12.0pt'>Thanks
Amit