From: Jaime Casanova <systemguards@gmail.com>
To: PostgreSQL SQL List <pgsql-sql@postgresql.org>
Subject: Fwd: [pgsql-es-ayuda] Ejecutar \copy desde VB
Date: Tue, 19 Jun 2007 23:33:24 +0000
Message-ID: <c2d9e70e0706191633k9043adaq132470f61dd851ee@mail.gmail.com> (raw)
In-Reply-To: <4677E189.9040107@yahoo.com.ar>
References: <c2d9e70e0706181909i4a27b12cif5efc73c74ca6db8@mail.gmail.com>
<570797.97455.qm@web63713.mail.re1.yahoo.com>
<c2d9e70e0706182030t759325c8ub17c780c66cc77c@mail.gmail.com>
<4677E189.9040107@yahoo.com.ar>
---------- Forwarded message ----------
From: Carlos Alberto Silva <casxxi@yahoo.com.ar>
Date: Jun 19, 2007 2:00 PM
Subject: Re: [pgsql-es-ayuda] Ejecutar \copy desde VB
To: Jaime Casanova <systemguards@gmail.com>
Yo lo harÃa de otra manera. Una rutina q lea el archivo de texto en VB
(nada complicado de hacer) y luego los inserts correspondientes en la
tabla via ODBC o como sea q me conecte a la base.
IMHO.Carlos
Jaime Casanova escribió:
> On 6/19/07, Gabriel Hermes Colina Zambra <hermeszambra@yahoo.com> wrote:
>> >
>> Otra burda manera pero menos complicada, es crear un
>> .bat que maneje set pgpassword=clavedeusuariopostgres
>
> en vez de setear pgpassword deberias usar un archivo pgpass.conf
> http://www.postgresql.org/docs/8.2/static/libpq-pgpass.html
>
>> y ejecutar el bat con la instruccion shell desde
>> visual basic, quiza teniendo un lnk apuntando al bat.
>> Es una idea burda pero funciona.
>>
>
> pero creo, no estoy seguro porque Chapiliquen no lo dejo claro, que
> quiere hacer eso desde un cliente y no desde el servidor... y dudo
> mucho que quiera tener recursos compartidos en cada cliente solo para
> eso... ahora que si esta dispuesto esa seria una solucion (claro que,
> segun yo, necesitaria ejecutar el bat en el servidor)
>
>
>
--
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
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
Subject: Re: Fwd: [pgsql-es-ayuda] Ejecutar \copy desde VB
In-Reply-To: <c2d9e70e0706191633k9043adaq132470f61dd851ee@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