Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id E64099FB811 for ; Tue, 19 Jun 2007 20:33:29 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 12303-08 for ; Tue, 19 Jun 2007 20:33:21 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by postgresql.org (Postfix) with ESMTP id E15759FB642 for ; Tue, 19 Jun 2007 20:33:25 -0300 (ADT) Received: by an-out-0708.google.com with SMTP id c36so446823ana for ; Tue, 19 Jun 2007 16:33:24 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=q0+NSeFqh1HpYI2T+edajfEEWQ5YPLCOZ1XP3EfY2uFlCIDw7dpe4502RtAJaDV8AqevmWuNYUIxVgdSakJkfIp7d6+rm6JUQ2WRBqQbZurKpuw87mrwOwQ1oKKK5hB4bP2SP+cTiV+fbLgkXkjmt5PAdA3LJzeqZ8KAQcltRjs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dAOoIXnIhJdNLX1UcwkjYRXqVF5zkQpp13xM6uA/gzfztBIms8l9kk/fN/PgZ7lr0wOVucHn1fWwYl4NVvMZ0ClLsl5lzF7t9YonJpW8lGxE8B85P4xvuQum7xYq9eq1OhHvD1a+WyTkoM/Eudw8wHRM3eqhSOEFZzwXKuhPdtU= Received: by 10.100.197.15 with SMTP id u15mr2531665anf.1182296004684; Tue, 19 Jun 2007 16:33:24 -0700 (PDT) Received: by 10.100.45.15 with HTTP; Tue, 19 Jun 2007 16:33:24 -0700 (PDT) Message-ID: Date: Tue, 19 Jun 2007 23:33:24 +0000 From: "Jaime Casanova" To: "PostgreSQL SQL List" Subject: Fwd: [pgsql-es-ayuda] Ejecutar \copy desde VB In-Reply-To: <4677E189.9040107@yahoo.com.ar> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <570797.97455.qm@web63713.mail.re1.yahoo.com> <4677E189.9040107@yahoo.com.ar> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/148 X-Sequence-Number: 28638 ---------- Forwarded message ---------- From: Carlos Alberto Silva Date: Jun 19, 2007 2:00 PM Subject: Re: [pgsql-es-ayuda] Ejecutar \copy desde VB To: Jaime Casanova Yo lo har=EDa 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=F3: > On 6/19/07, Gabriel Hermes Colina Zambra wrote: >> > >> Otra burda manera pero menos complicada, es crear un >> .bat que maneje set pgpassword=3Dclavedeusuariopostgres > > 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) > > > --=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