Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 677502E340C for ; Tue, 8 Jan 2008 18:33:56 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 16567-10 for ; Tue, 8 Jan 2008 18:33:49 -0400 (AST) Received: from mail.stoller.com (unknown [216.150.216.106]) by postgresql.org (Postfix) with ESMTP id 06A232E313B for ; Tue, 8 Jan 2008 18:33:48 -0400 (AST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C85246.861F2A1F" Subject: Re: Regarding Connectivity Date: Tue, 8 Jan 2008 15:33:43 -0700 Message-ID: <66F6CF82BF58CE4DB4285BE816B297E83BACCE@tribble.SMStoller.com> In-Reply-To: <003001c85244$b7ef34a0$9b0014ac@wbaus090> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ODBC] Regarding Connectivity Thread-Index: AchSRQ7QKIqKMo68ReGKqcQsoCtrSQAAT5pg References: <9caef5bc0801080443q5041e10bt334e8e73f0cc64a@mail.gmail.com> <003001c85244$b7ef34a0$9b0014ac@wbaus090> From: "Greg Cocks" To: "Phillip Smith" , "Amit Saha" , X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.174 tagged_above=0 required=5 tests=AWL=0.072, BAYES_50=0.001, HTML_MESSAGE=0.001, RDNS_NONE=0.1 X-Spam-Level: X-Archive-Number: 200801/8 X-Sequence-Number: 9315 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

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???

 

 

=

Cheers:

GREG = COCKS

gcocks@stoller.com

 

=

 

=

 

=

------------------= --------------

 

=

From: = 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

 

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:

 

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;

 

I use this = method in scripts to move data between databases on PostgreSQL.

 

Cheers,

~p<= span lang=3DEN-AU>

 

-----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

 


Hi,

 

I have one question regarding the = connectivity to PostGreSQL Database.

 

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.

 

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.

 

Please let me know how should I go about = that.

 

Thanks
Amit

 

THINK BEFORE YOU PRINT - Save paper if you don't really need to print this = e-mail.

*******************Confidentiality and = Privilege Notice******************* =

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.

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

------_=_NextPart_001_01C85246.861F2A1F--