pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sim Zacks <sim@nospam.com>
To: pgsql-odbc@postgresql.org
Subject: Re: Migrating databases from MS SQL Server to PostgreSQL
Date: Tue, 16 Nov 2004 13:18:00 +0200
Message-ID: <cncnnt$2doh$1@news.hub.org> (raw)
References: <e1471e4d.0411160037.33584de4@posting.google.com>

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





view thread (2+ messages)

Message-ID: <cncnnt$2doh$1@news.hub.org>
Permalink:  ../cncnnt$2doh$1@news.hub.org/
Also on:    postgresql.org/message-id/cncnnt$2doh$1@news.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: sim@nospam.com
  Subject: Re: Migrating databases from MS SQL Server to PostgreSQL
  In-Reply-To: <cncnnt$2doh$1@news.hub.org>
  References: <e1471e4d.0411160037.33584de4@posting.google.com> <cncnnt$2doh$1@news.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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