Accessing H2 via PostgreSQL ODBC driver

2,752 views
Skip to first unread message

Victor Wong

unread,
Jun 19, 2009, 7:53:22 PM6/19/09
to H2 Database
I am able to connect to the H2 server using the ODBC driver, but
cannot see my tables on the server. I'm using H2 1.1.114 and
psqlodbc_08_03_0400. I can see the tables in the INFORMATION_SCHEMA,
but not the tables I created when opening a connection from Excel via
MS Query. Is anyone else having similar problems?

Thanks in advance,
Victor

Thomas Mueller

unread,
Jun 22, 2009, 11:43:48 PM6/22/09
to h2-da...@googlegroups.com
Hi,

How did you start the PG server? Did you use the baseDir option? See
also: http://www.h2database.com/html/advanced.html#odbc_driver

Regards,
Thomas

Victor Wong

unread,
Jun 23, 2009, 12:16:23 PM6/23/09
to H2 Database
Thanks, Thomas. I realized that the server was creating a new
database and not opening the one I had accessed from the console. The
-baseDir and -ifExists options fixed that.

Victor

On Jun 22, 8:43 pm, Thomas Mueller <thomas.tom.muel...@gmail.com>
wrote:

syed usman

unread,
May 8, 2015, 1:24:06 PM5/8/15
to h2-da...@googlegroups.com
Hi Victor,

Can you please list me the steps you use to connect h2 server via postgresql odbc driver.
I am actually trying to connect Ruby with h2 database. One of the solution i read was we can do it via postgresql odbc driver. thanks

syed

Thomas Mueller

unread,
May 14, 2015, 8:43:27 AM5/14/15
to h2-da...@googlegroups.com
Hi,


Regards,
Thomas

--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2-database...@googlegroups.com.
To post to this group, send email to h2-da...@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

kenlo

unread,
Jun 2, 2015, 3:17:35 AM6/2/15
to h2-da...@googlegroups.com
I am actually trying to connect Ruby with h2 database. One of the solution i read was we can do it via postgresql odbc driver. thanks

I use Lua with luapgsql module compiled against the postgresql-9.3.5-1-windows-binaries.  There is no need to go through the odbc driver.  Ruby should have similar interfaces to postgresql.
Reply all
Reply to author
Forward
0 new messages