Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6FA069FB4DC for ; Tue, 19 Jun 2007 23:35:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 46801-05 for ; Tue, 19 Jun 2007 23:35:43 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 27A8D9FB45E for ; Tue, 19 Jun 2007 23:35:42 -0300 (ADT) Received: from perhan.alvh.no-ip.org (190-13-143-52.bk13-dsl.surnet.cl [190.13.143.52]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l5K2ZfAM016972; Tue, 19 Jun 2007 19:35:42 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 60E2C32A28; Tue, 19 Jun 2007 22:35:36 -0400 (CLT) Date: Tue, 19 Jun 2007 22:35:36 -0400 From: Alvaro Herrera To: Jaime Casanova Cc: Chapilliquen Gutierrez Eduardo , pgsql-es-ayuda@postgresql.org Subject: Re: Ejecutar \copy desde VB Message-ID: <20070620023536.GA7972@alvh.no-ip.org> References: <52865C3823D7134E909B33D3822985942279D7@srvmail01.mem.int> <20070619154020.GO4265@alvh.no-ip.org> <52865C3823D7134E909B33D382298594227B80@srvmail01.mem.int> <20070619171050.GU4265@alvh.no-ip.org> <52865C3823D7134E909B33D382298594227C29@srvmail01.mem.int> <20070619172559.GX4265@alvh.no-ip.org> <20070620000341.GL21268@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Tue, 19 Jun 2007 19:35:44 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/474 X-Sequence-Number: 28306 Jaime Casanova escribió: > On 6/20/07, Alvaro Herrera wrote: > >Jaime Casanova escribió: > > > >> >Bueno, si no sabes programar en el lenguaje que estas utilizando, no es > >> >en esta lista donde debes consultar. Lo unico que te puedo decir es que > >> >en C lo harias con la rutina PQputCopyData, y terminas con PQputCopyEnd. > >> >Esto se hace despues de haber enviado un COPY FROM STDIN. > >> > >> en defensa de Chapiliquen dire que VB es un lenguaje facil de usar > >> hasta que empiezas a hacer un programa real... entonces te das cuenta > >> que VB no es lenguaje real... > > > >Como no se va a poder hacer una rutina para leer un archivo linea por > >linea :-( > > eso si... enviarlo a STDIN es otro asunto... la mayoria de los que > usan VB ni siquiera saben que es eso :) Ehhh! Pero no necesitas enviarlo a STDIN!! Lo unico que necesitas es pasarle la linea a PQputCopyEnd. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.