Re: Seeking help on making an Access-ODBC-SSH-PostgreSQL connection

Re: Seeking help on making an Access-ODBC-SSH-PostgreSQL connection

am 27.12.2006 23:29:06 von jmadams

This is a multi-part message in MIME format.

------=_NextPart_000_010D_01C729C3.6005E8B0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

In the tunneling dialog in putty, the host should be dhat.org, not
highspeedrails.

_____

From: Ken Winter [mailto:ken@sunward.org]
Sent: Sunday, December 24, 2006 4:36 PM
To: pgsql-odbc@postgresql.org
Cc: 'Jim Myers'; Michael Adams - DHAT; 'Ken Winter'
Subject: Seeking help on making an Access-ODBC-SSH-PostgreSQL connection


Hello PgSQL-ODBC ~

I'm trying to use MS Access (on my Windows XP client) as a front-end query
and reporting tool for a PostgreSQL database, which is running on a
commercial web host server (http://www.highspeedrails.com
).

My objective is to get the PostgreSQL database tables to show up in Access
as linked tables, on which I can then build queries and reports. I figured
that to do this, I need to:

1. Install the psqlODBC driver. I've done that.
2. Set up a DSN for this driver and the target database. I've done
that.
3. Somehow get an SSH tunnel open, with port forwarding. This part of
the story gets long. I have connected to highspeedrails via SSH using tools
that have built-in SSH functionality (PGLA, EMS SQL Manager) and specific
SSH tools (SSH Secure Shell, PuTTY). I have failed with another tool with
built-in SSH (Navicat). I have tried to use PuTTY and SSH Secure Shell to
make the tunnel available to other tools (namely Access) that apparently
aren't capable of digging their own tunnels.
4. With the tunnel (hopefully) open, fire up Access and try to link a
table from the PostgreSQL database.

So, here's a true story (see screen prints in attached files):

1. Start a session using PuTTY (see screen prints "PuTTY Session
01.JPG", "PuTTY SSH 01.JPG", and "PuTTY Login 01.JPG").

2. In an empty Access database, select Insert / Table / Linked Table /
ODBC Databases, and select the psqlODBC driver DSN (see screen prints "ODBC
Driver Setup 01.JPG" and "Access Data Source 01.JPG).

3. Result: the error message shown in "Access ODBC call failed error
01.JPG".

I don't have enough experience with all these technologies to analyze what
went wrong in this and many other scenarios I have tried (details of the
others on request).

Can anyone help - with specific advice or a useful reference?

~ TIA
~ Ken

------=_NextPart_000_010D_01C729C3.6005E8B0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable


"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word">
charset=3Dus-ascii">


href=3D"cid:filelist.xml@01C72792.C4169030" rel=3DFile-List>


link=3Dblue>

face=3DArial=20
color=3D#0000ff size=3D2>In the tunneling dialog in putty, the host =
should be=20
dhat.org, not highspeedrails.


style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">



From: Ken Winter =
[mailto:ken@sunward.org]=20

Sent: Sunday, December 24, 2006 4:36 PM
To:=20
pgsql-odbc@postgresql.org
Cc: 'Jim Myers'; Michael Adams - =
DHAT;=20
'Ken Winter'
Subject: Seeking help on making an=20
Access-ODBC-SSH-PostgreSQL connection




style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Hello class=3DSpellE>PgSQL-ODBC ~


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Verdana"> 


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Verdana">I’m trying to =
use MS Access (on=20
my Windows XP client) as a front-end query and reporting tool for a =
class=3DSpellE>PostgreSQL database, which is running on a =
commercial web=20
host server ( =
href=3D"http://www.highspeedrails.com/">http://www.highspeed rails.com=
). style=3D"mso-spacerun: yes">  =


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Verdana"> 


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Verdana">My objective is to get =
the class=3DSpellE>PostgreSQL database tables to show up in Access =
as linked=20
tables, on which I can then build queries and reports. style=3D"mso-spacerun: yes">  I figured that to do this, I =
need=20
to:


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Verdana"> 


style=3D"MARGIN-LEFT: 39.75pt; TEXT-INDENT: -0.25in; mso-list: l0 =
level1 lfo1; tab-stops: list 39.75pt"> face=3DVerdana size=3D2> style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Verdana; =
mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana"> style=3D"mso-list: Ignore">1. size=3D1> style=3D"FONT: 7pt 'Times New Roman'">     =20
size=3D2> style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Install the class=3DSpellE>psqlODBC driver. style=3D"mso-spacerun: yes"> I’ve done that. style=3D"mso-spacerun: yes"> 


style=3D"MARGIN-LEFT: 39.75pt; TEXT-INDENT: -0.25in; mso-list: l0 =
level1 lfo1; tab-stops: list 39.75pt"> face=3DVerdana size=3D2> style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Verdana; =
mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana"> style=3D"mso-list: Ignore">2. size=3D1> style=3D"FONT: 7pt 'Times New Roman'">     =20
size=3D2> style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Set up a DSN for this =
driver and=20
the target database.  =
I’ve done=20
that.


style=3D"MARGIN-LEFT: 39.75pt; TEXT-INDENT: -0.25in; mso-list: l0 =
level1 lfo1; tab-stops: list 39.75pt"> face=3DVerdana size=3D2> style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Verdana; =
mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana"> style=3D"mso-list: Ignore">3. size=3D1> style=3D"FONT: 7pt 'Times New Roman'">     =20
size=3D2> style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Somehow get an SSH =
tunnel open,=20
with port forwarding.  =
This part=20
of the story gets long. yes"> I have=20
connected to highspeedrails via SSH using =
tools that=20
have built-in SSH functionality (PGLA, EMS SQL Manager) and specific =
SSH tools=20
(SSH Secure Shell, PuTTY). style=3D"mso-spacerun: yes">  I have failed with another =
tool with=20
built-in SSH (Navicat).  =
I have=20
tried to use PuTTY and SSH Secure Shell to =
make the=20
tunnel available to other tools (namely Access) that apparently =
aren’t capable=20
of digging their own tunnels.


style=3D"MARGIN-LEFT: 39.75pt; TEXT-INDENT: -0.25in; mso-list: l0 =
level1 lfo1; tab-stops: list 39.75pt"> face=3DVerdana size=3D2> style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Verdana; =
mso-fareast-font-family: Verdana; mso-bidi-font-family: Verdana"> style=3D"mso-list: Ignore">4. size=3D1> style=3D"FONT: 7pt 'Times New Roman'">     =20
size=3D2> style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Verdana">With the tunnel =
(hopefully)=20
open, fire up Access and try to link a table from the class=3DSpellE>PostgreSQL =
database.


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Verdana"> 


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Verdana">So, here’s a =
true story (see=20
screen prints in attached files):


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Verdana"> 



  1. style=3D"mso-list: l1 level1 lfo2; tab-stops: list .5in"> face=3DVerdana=20
    size=3D2>Start =
    a session=20
    using PuTTY (see screen prints =
    class=3DSpellE>PuTTY
    Session 01.JPG”, “ class=3DSpellE>PuTTY=20
    SSH 01.JPG”, and “PuTTY =
    Login=20
    01.JPG”).
    =20
  2. style=3D"mso-list: l1 level1 lfo2; tab-stops: list .5in"> face=3DVerdana=20
    size=3D2>In an =
    empty=20
    Access database, select Insert / Table / Linked Table / ODBC =
    Databases, and=20
    select the psqlODBC driver DSN (see =
    screen prints=20
    “ODBC Driver Setup 01.JPG” and “Access Data Source =

    01.JPG).
    =20
  3. style=3D"mso-list: l1 level1 lfo2; tab-stops: list .5in"> face=3DVerdana=20
    size=3D2> Verdana">Result: the error=20
    message shown in “Access ODBC call failed error=20
    01.JPG”.

style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Verdana"> 


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Verdana">I don’t have =
enough experience=20
with all these technologies to analyze what went wrong in this and =
many other=20
scenarios I have tried (details of the others on request). style=3D"mso-spacerun: yes"> 


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Verdana"> 


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Can anyone help - with =
specific=20
advice or a useful reference?


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Verdana"> 


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Verdana">~=20
TIA


style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Verdana">~=20
Ken



------=_NextPart_000_010D_01C729C3.6005E8B0--