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 AAD7C3A3B58 for ; Tue, 16 Nov 2004 08:55:16 +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 34459-02 for ; Tue, 16 Nov 2004 08:55:05 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 973CA3A1D98 for ; Tue, 16 Nov 2004 08:55:07 +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 iAG8t4g5035248 for ; Tue, 16 Nov 2004 08:55:04 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id iAG8bGB8030381 for pgsql-odbc@postgresql.org; Tue, 16 Nov 2004 08:37:16 GMT From: doobie@lavache.com (Doobie) X-Newsgroups: comp.databases.postgresql.interfaces.odbc Subject: Migrating databases from MS SQL Server to PostgreSQL Date: 16 Nov 2004 00:37:17 -0800 Organization: http://groups.google.com Lines: 18 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/92 X-Sequence-Number: 4706 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