import from SQL Server

From: Stephen Davies <scldad(at)sdc(dot)com(dot)au>
To: pgsql-general(at)postgresql(dot)org
Subject: import from SQL Server
Date: 1998-07-06 13:26:44
Message-ID: 199807061326.WAA14044@mustang.sdc.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

G'day all.

I have a need to transfer data from a SQL Server database to a PostgreSQL
database.

For reasons known best to the designer of the SQL Server database, several of
the columns which I wish to transfer are defined as "binary" but contain
characters which one would normally expect to be defined as varchar.

This means that values exported from SQL Server look like enormous hex numbers
rather than ASCII character strings. That is, rather than seeing 'ABC', one
sees 0x616263.

Can anyone please tell me:

a) why anyone would define a column this way,

b) how I can import the data without writing a program.

Cheers and thanks,
Stephen.

========================================================================
Stephen Davies Consulting scldad(at)sdc(dot)com(dot)au
Adelaide, South Australia. Voice: 61-8-82728863
Computing & Network solutions. Fax: 61-8-82741015

Browse pgsql-general by date

  From Date Subject
Next Message Herouth Maoz 1998-07-06 13:49:26 Re: [GENERAL] :) Import file2table Question
Previous Message David Hartwig 1998-07-06 12:59:35 Re: [GENERAL] ODBC problems