Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 45915476AB1 for ; Tue, 8 Oct 2002 10:07:33 -0400 (EDT) Received: from web13807.mail.yahoo.com (web13807.mail.yahoo.com [216.136.175.17]) by postgresql.org (Postfix) with SMTP id E3F6647699C for ; Tue, 8 Oct 2002 10:07:31 -0400 (EDT) Message-ID: <20021008140735.90716.qmail@web13807.mail.yahoo.com> Received: from [216.173.173.66] by web13807.mail.yahoo.com via HTTP; Tue, 08 Oct 2002 07:07:35 PDT Date: Tue, 8 Oct 2002 07:07:35 -0700 (PDT) From: Chris Gamache Reply-To: cgg007@yahoo.com Subject: COPY FROM stdin; To: pgsql-odbc@postgresql.org, pgman@candle.pha.pa.us In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/50 X-Sequence-Number: 2135 I've posted in pgsql-general... I think the moment they read ODBC their eyes glazed over. :) Perhaps y'all might have an idea for me. I'm tring to send a chunk of data to the postgresql backend via ODBC... Here's a table: CREATE TABLE testtable ( value1 int4, value2 varchar(10)) WITH OIDS; I'm trying to execute this a query with this intent... "COPY testtable FROM stdin USING DELIMITERS '|';" + chr(10) + "1|Test1" + chr(10) + "2|Test2" + chr(10) + "3|Test3" + chr(10) + "4|Test4" + chr(10) + "\." + chr(10) Of course, this SQL statement does not work... :) I have no idea how to harness the power of COPY without creating a file on the machine's filesystem for it to read from, or piping the data into psql from the command line. INSERTS of the same data go at about 1-2 per second. That gets costly if I'm doing 5000 tuples. Any hints? __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com