Regarding Connectivity

Regarding Connectivity

am 08.01.2008 13:43:45 von Amit Saha

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

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

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



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


------=_Part_7815_25451656.1199796225526--

Re: Regarding Connectivity

am 08.01.2008 23:20:45 von Phillip Smith

This is a multi-part message in MIME format.

------=_NextPart_000_0031_01C852A0.EB5FACA0
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

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


=0ATHINK BEFORE YOU PRINT - Save paper if you don't really need to print this=
*******************Confidentiality and Privilege Notice*******************=
The material contained in this message is privileged and confidential to=
=0Athe addressee. If you are not the addressee indicated in this message or=
=0Aresponsible for delivery of the message to such person, you may not copy=0Aor=
deliver this message to anyone, and you should destroy it and kindly=0Anotify=
the sender by reply email. Information in this message that does not relat=
e to the official business=0Aof Weatherbeeta must be treated as neither given =
nor endorsed by Weatherbeeta.=0AWeatherbeeta, its employees, contractors or as=
sociates shall not be liable=0Afor direct, indirect or consequential loss aris=
ing from transmission of this=0Amessage or any attachments=0Ae-mail.=0A

------=_NextPart_000_0031_01C852A0.EB5FACA0
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable




charset=3Dus-ascii">












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:



style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> 



style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>BEGIN;



style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>SELECT col1, col2, col3, col7, =
col8, col9



style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>INTO TEMP export



style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>FROM =
Postgres_table



style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>WHERE whatever =3D =
something;



style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>COPY export TO =
‘/path/to/save/exported/file.tsv’;



style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>COMMIT;



style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> 



style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>I use this method in scripts to =
move data
between databases on PostgreSQL.



style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> 



style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Cheers,



style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>~p



style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> 



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



style=3D'font-size:
12.0pt'> 



style=3D'font-size:
12.0pt'>





style=3D'font-size:
12.0pt'>Hi,







style=3D'font-size:
12.0pt'> 







style=3D'font-size:
12.0pt'>I have one question regarding the connectivity to PostGreSQL =
Database.







style=3D'font-size:
12.0pt'> 







Roman"> style=3D'font-size:12.0pt'>Question: Is it =
possible to
connect to the PostGreSQL database through Microsoft SQL Server 2000 =
version in
the DTS Package.







style=3D'font-size:
12.0pt'>There is a requirement to pull data from PoseGreSQL database =
into SQL
Server Database.







style=3D'font-size:
12.0pt'> 







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.







style=3D'font-size:
12.0pt'> 







style=3D'font-size:
12.0pt'>Please let me know how should I go about that.







style=3D'font-size:
12.0pt'> 







style=3D'font-size:
12.0pt'>Thanks

Amit











=

=0ATHINK BEFORE YOU PRINT - Save paper if you don't really need to print t=
his e-mail.=0A

=0A*******************Confidentiality and Privilege Notice**=
*****************
=0A

=0AThe material contained in this message is privileg=
ed and confidential to=0Athe addressee. If you are not the addressee indicate=
d in this message or=0Aresponsible for delivery of the message to such person,=
you may not copy=0Aor deliver this message to anyone, and you should destroy =
it and kindly=0Anotify the sender by reply email.=0A

=0AInformation in this mess=
age that does not relate to the official business=0Aof Weatherbeeta must be tr=
eated as neither given nor endorsed by Weatherbeeta.=0AWeatherbeeta, its emplo=
yees, contractors or associates shall not be liable=0Afor direct, indirect or =
consequential loss arising from transmission of this=0Amessage or any attachme=
nts=0A

=




------=_NextPart_000_0031_01C852A0.EB5FACA0--

Re: Regarding Connectivity

am 08.01.2008 23:33:43 von Greg Cocks

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


charset=3Dus-ascii">










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







lang=3DEN-AU
style=3D'font-size:12.0pt'> 



style=3D'font-size:12.0pt'>THINK
BEFORE YOU PRINT - Save paper if you don't really need to print this =
e-mail.



style=3D'font-size:
12.0pt;font-weight:bold'>*******************Confidentiality and =
Privilege
Notice*******************
=



style=3D'font-size:12.0pt'>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.



style=3D'font-size:12.0pt'>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--

Re: Regarding Connectivity

am 09.01.2008 02:37:01 von Brandon Hines

Amit,

I have not set them up myself, but in the past we used DTS packages
extensively. There were some occasional issues, but it does work.

-Brandon


On Jan 8, 2008, at 6:43 AM, Amit Saha wrote:

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


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match