pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Migrating databases from MS SQL Server to PostgreSQL
2+ messages / 2 participants
[nested] [flat]

* Migrating databases from MS SQL Server to PostgreSQL
@ 2004-11-16 08:37  Doobie <doobie@lavache.com>
  0 siblings, 1 reply; 2+ messages in thread

From: doobie@lavache.com @ 2004-11-16 08:37 UTC (permalink / raw)
  To: pgsql-odbc

Hi,

I'm trying to migrate one of our MS SQL databases to Postgre, but have
encountered a little problem. I thought that the best way to do it was
to use Postgre ODBC drivers to transfer data from SQL Server from a
DTS. The only tables that I can't transfer have some columns of text
type. I can't change it to varchar, because some fields can have more
than 8040 characters (SQL Server's limit). When executing the DTS,
I've got the following error : "Data for source column 9 is too large
for the specified buffer size". Column 9 is the first column with text
type.
Do you have an idea on how I could avoid this, or another way to
import data ? I've also tried to export my tables in text format and
import with postgre's COPY, but some fields have carriage return
included (for web pages) wich doesn't make it easy.

Thanks,
Doobie



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Migrating databases from MS SQL Server to PostgreSQL
@ 2004-11-16 11:18  Sim Zacks <sim@nospam.com>
  parent: Doobie <doobie@lavache.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Sim Zacks @ 2004-11-16 11:18 UTC (permalink / raw)
  To: pgsql-odbc

One of the default values in the ODBC driver is "Text as LongVarChar" you
want to remove that check mark.

"Doobie" <doobie@lavache.com> wrote in message
news:e1471e4d.0411160037.33584de4@posting.google.com...
> Hi,
>
> I'm trying to migrate one of our MS SQL databases to Postgre, but have
> encountered a little problem. I thought that the best way to do it was
> to use Postgre ODBC drivers to transfer data from SQL Server from a
> DTS. The only tables that I can't transfer have some columns of text
> type. I can't change it to varchar, because some fields can have more
> than 8040 characters (SQL Server's limit). When executing the DTS,
> I've got the following error : "Data for source column 9 is too large
> for the specified buffer size". Column 9 is the first column with text
> type.
> Do you have an idea on how I could avoid this, or another way to
> import data ? I've also tried to export my tables in text format and
> import with postgre's COPY, but some fields have carriage return
> included (for web pages) wich doesn't make it easy.
>
> Thanks,
> Doobie





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-11-16 11:18 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-11-16 08:37 Migrating databases from MS SQL Server to PostgreSQL Doobie <doobie@lavache.com>
2004-11-16 11:18 ` Sim Zacks <sim@nospam.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox