Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 195619FB90F for ; Tue, 19 Jun 2007 21:19:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 46492-05 for ; Tue, 19 Jun 2007 21:18:57 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by postgresql.org (Postfix) with ESMTP id 342BD9FB3D7 for ; Tue, 19 Jun 2007 21:19:02 -0300 (ADT) Received: by wx-out-0506.google.com with SMTP id s16so6189wxc for ; Tue, 19 Jun 2007 17:19:01 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HDSguKdrlK8v3OcjS5HnfWgXR2fRnJ55tN6cD3mh4s3+RMo5CCK4r3nyC9/YE1iC+PdnaRXWHzNmKpnhfMDwAu/YHaqsxjJDaJqOnGGOk08Bcj9/tWuydjPJbA9WnY93HZyAGGn7HnN9NMa+rqeDPI9wqXUfXnz2/b5KlpUoNOA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OGRoh4yp6Ti1wAJ0jC4k51gGaODWvU6quDw/iLfIFdjjzWKSXtOFf5PtNMncPfpwH8e5uLEolde6gUJ43RLIrNSyxF0R6R7/c7SVLpe/2L1sXdW35qtlNhJhGIhjuc1P+b0M9ZW0GstJiFbnHDBOQ8+RberJlysEjMFXdYUhyNQ= Received: by 10.100.8.18 with SMTP id 18mr19909anh.1182298740985; Tue, 19 Jun 2007 17:19:00 -0700 (PDT) Received: by 10.100.45.15 with HTTP; Tue, 19 Jun 2007 17:19:00 -0700 (PDT) Message-ID: Date: Wed, 20 Jun 2007 00:19:00 +0000 From: "Jaime Casanova" To: "Alvaro Herrera" Subject: Re: Ejecutar \copy desde VB Cc: "Chapilliquen Gutierrez Eduardo" , pgsql-es-ayuda@postgresql.org In-Reply-To: <20070620000341.GL21268@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=AWL=-0.001, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200706/472 X-Sequence-Number: 28304 On 6/20/07, Alvaro Herrera wrote: > Jaime Casanova escribi=F3: > > > >Bueno, si no sabes programar en el lenguaje que estas utilizando, no e= s > > >en esta lista donde debes consultar. Lo unico que te puedo decir es q= ue > > >en C lo harias con la rutina PQputCopyData, y terminas con PQputCopyEn= d. > > >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 :) --=20 Atentamente, Jaime Casanova "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots. So far, the universe is winning." Richard Cook