Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4F7DF9FA491 for ; Wed, 27 Dec 2006 19:02:41 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 91568-02 for ; Wed, 27 Dec 2006 19:02:11 -0400 (AST) X-Greylist: delayed 00:32:45.679934 by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 02F7B9FA4A0 for ; Wed, 27 Dec 2006 19:02:10 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from svcstsnq08.hotspot.t-mobile.com (m70095e42.tmodns.net [66.94.9.112]) by svr4.postgresql.org (Postfix) with ESMTP id 539DB5AF03A for ; Wed, 27 Dec 2006 22:29:19 +0000 (GMT) Received: from jma (167.48.222.10.in-addr.arpa [10.222.48.167]) by svcstsnq08.hotspot.t-mobile.com (8.13.7+Sun/8.12.10) with ESMTP id kBRMT3nf025271; Wed, 27 Dec 2006 14:29:05 -0800 (PST) From: "J. Michael Adams" To: "'Ken Winter'" , Cc: "'Jim Myers'" Subject: Re: Seeking help on making an Access-ODBC-SSH-PostgreSQL connection Date: Wed, 27 Dec 2006 14:29:06 -0800 Message-ID: <010c01c72a06$6e261b70$a730de0a@jma> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_010D_01C729C3.6005E8B0" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-Index: AccnvMVAtE25ai3xTQGcXwFAfEHSEQCSY3Ig In-Reply-To: <000501c727bc$b12bc880$6503a8c0@KenIBM> X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlx=0 adultscore=0 adjust=0 reason=mlx engine=3.1.0-0612050001 definitions=main-0612270025 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.137 tagged_above=0 required=5 tests=BAYES_50, FORGED_RCVD_HELO, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200612/92 X-Sequence-Number: 8539 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
In the tunneling dialog in putty, the host = should be=20 dhat.org, not highspeedrails.


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

Hello PgSQL-ODBC ~

 

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

 

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

 

1.     =20 Install the psqlODBC driver.  I’ve done that.  

2.     =20 Set up a DSN for this = driver and=20 the target database.  = I’ve done=20 that.

3.     =20 Somehow get an SSH = tunnel open,=20 with port forwarding.  = This part=20 of the story gets long.  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).  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.

4.     =20 With the tunnel = (hopefully)=20 open, fire up Access and try to link a table from the PostgreSQL = database.

 

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

 

  1. Start = a session=20 using PuTTY (see screen prints = “PuTTY Session 01.JPG”, “PuTTY=20 SSH 01.JPG”, and “PuTTY = Login=20 01.JPG”).=20
  2. 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. Result: the error=20 message shown in “Access ODBC call failed error=20 01.JPG”.

 

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

 

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

 

~=20 TIA

~=20 Ken

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