pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Suworow <paul.suworow@gmail.com>
To: pgsql-odbc@postgresql.org
Subject: Connection to PostgreSQL from Excel
Date: Mon, 27 Aug 2018 22:19:30 +0200
Message-ID: <001f01d43e43$438e30b0$caaa9210$@gmail.com> (raw)
In-Reply-To: <-3a5719ao6eou3leql-edduop-bzcl2t4oi9cm-fxcuey-a4i1c4-jsfglwfhie6bdtabdc-bxwmcnqe0xk7-q0nc5o-n3nir5-dkdwdbkihg1i2s8mhd78g4i3-onf2e0w2oio4nnlmvd-n3k13z-1j3goc.1535355997668@email.android.com>
References: <-3a5719ao6eou3leql-edduop-bzcl2t4oi9cm-fxcuey-a4i1c4-jsfglwfhie6bdtabdc-bxwmcnqe0xk7-q0nc5o-n3nir5-dkdwdbkihg1i2s8mhd78g4i3-onf2e0w2oio4nnlmvd-n3k13z-1j3goc.1535355997668@email.android.com>

Hi team,

Thank you for your great work! I am developing an Excel tool that should allow users to update tables and charts from a PostgreSQL database. My workbook currently connects to the database using the following VBA code:

Set objConnection = CreateObject("ADODB.Connection")
ConnString = "DRIVER={PostgreSQL Unicode};DATABASE=FMS;SERVER=[x];PORT=5432;Uid=[x];Pwd=[x]"
 objConnection.Open ConnString

All works fine but the code requires PostgreSQL driver to be installed on user's machine.
Is there an alternative way to connect to a PostgreSQL database without pre-creating DNS or installing any drivers in advance?

Thank you for your help!

Kind regards,
Paul







view thread (3+ messages)

Message-ID: <001f01d43e43$438e30b0$caaa9210$@gmail.com>
Permalink:  ../001f01d43e43$438e30b0$caaa9210$@gmail.com/
Also on:    postgresql.org/message-id/001f01d43e43$438e30b0$caaa9210$@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: paul.suworow@gmail.com
  Subject: Re: Connection to PostgreSQL from Excel
  In-Reply-To: <001f01d43e43$438e30b0$caaa9210$@gmail.com>
  References: <-3a5719ao6eou3leql-edduop-bzcl2t4oi9cm-fxcuey-a4i1c4-jsfglwfhie6bdtabdc-bxwmcnqe0xk7-q0nc5o-n3nir5-dkdwdbkihg1i2s8mhd78g4i3-onf2e0w2oio4nnlmvd-n3k13z-1j3goc.1535355997668@email.android.com> <001f01d43e43$438e30b0$caaa9210$@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