pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jaime Casanova <systemguards@gmail.com>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Chapilliquen Gutierrez Eduardo <ECHAPILLIQUEN@minem.gob.pe>
Cc: pgsql-es-ayuda@postgresql.org
Subject: Re: Ejecutar \copy desde VB
Date: Wed, 20 Jun 2007 05:11:33 +0000
Message-ID: <c2d9e70e0706192211y3c46233dg507e96ff21586e99@mail.gmail.com> (raw)
In-Reply-To: <20070620023536.GA7972@alvh.no-ip.org>
References: <c2d9e70e0706182030t759325c8ub17c780c66cc77c@mail.gmail.com>
	<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>
	<c2d9e70e0706191642s4c10e113hee051ba3330d72c0@mail.gmail.com>
	<20070620000341.GL21268@alvh.no-ip.org>
	<c2d9e70e0706191719m4c834a3x42de0d8bf65f0cdc@mail.gmail.com>
	<20070620023536.GA7972@alvh.no-ip.org>

On 6/20/07, Alvaro Herrera <alvherre@commandprompt.com> wrote:
> Jaime Casanova escribió:
> > On 6/20/07, Alvaro Herrera <alvherre@commandprompt.com> 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.
>

Claro, a traves de libpq... que no es el caso porque esta conectado a
traves de odbc (probablemente, usando ADO)

Y creeme trabajar con librerias de terceros en Vb it's a pain in the ;)...

por cierto, tendria que abrir una segunda conexion a la base con libpq
para poder ejecutar PQputCopyData y PQputCopyEnd?

a menos que alguien me diga que se puede usar las funciones de libpq a
traves de ADO...

-- 
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



view thread (25+ messages)  latest in thread

Message-ID: <c2d9e70e0706192211y3c46233dg507e96ff21586e99@mail.gmail.com>
Permalink:  ../c2d9e70e0706192211y3c46233dg507e96ff21586e99@mail.gmail.com/
Also on:    postgresql.org/message-id/c2d9e70e0706192211y3c46233dg507e96ff21586e99@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: systemguards@gmail.com, alvherre@commandprompt.com, ECHAPILLIQUEN@minem.gob.pe, pgsql-es-ayuda@postgresql.org
  Subject: Re: Ejecutar \copy desde VB
  In-Reply-To: <c2d9e70e0706192211y3c46233dg507e96ff21586e99@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox