X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8018B3A2B21 for ; Tue, 16 Nov 2004 11:25:17 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 79070-03 for ; Tue, 16 Nov 2004 11:25:06 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 8F07D3A1D98 for ; Tue, 16 Nov 2004 11:25:08 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id iAGBP5g5081386 for ; Tue, 16 Nov 2004 11:25:05 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id iAGBJQ4v079637 for pgsql-odbc@postgresql.org; Tue, 16 Nov 2004 11:19:26 GMT From: "Sim Zacks" X-Newsgroups: comp.databases.postgresql.interfaces.odbc Subject: Re: Migrating databases from MS SQL Server to PostgreSQL Date: Tue, 16 Nov 2004 13:18:00 +0200 Organization: Hub.Org Networking Services Lines: 25 Message-ID: References: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.2 tagged_above=0.0 required=5.0 tests=DNS_FROM_RFCI_DSN, PRIORITY_NO_NAME X-Spam-Level: ** X-Archive-Number: 200411/91 X-Sequence-Number: 4705 One of the default values in the ODBC driver is "Text as LongVarChar" you want to remove that check mark. "Doobie" 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