Unix Technical Forum

ODBC MSAccess

This is a discussion on ODBC MSAccess within the Pgsql General forums, part of the PostgreSQL category; --> I am accessing PostgreSQL through MS Access. Everything works Ok if I manually connect through Access using the ODBC ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 08:53 AM
Andrew Maclean
 
Posts: n/a
Default ODBC MSAccess

I am accessing PostgreSQL through MS Access.
Everything works Ok if I manually connect through Access using the ODBC
Dialog.
However I wrote a VB function that opens the database and connects to it.
This works provided there is no int8 column in the PostgresSQL table.

When I use the ODBC interface to link the tables, int8 columns on PostGreSQL
are mapped to Number in Access and everything works OK.
However when I use connection string as in VB the int8 columns are mapped to
Binary in Access.

Does anyone know what parameters I need to set in the ODBC string to fix
this? I can't find any documentation.
There is an Int8 section in the ODBC interface but I cant find any
corresponding parameter to set in a connection string.

By the way the options I am using in the VB connection string are:
"PORT=5432;SSLMODE=prefer;A6=;A7=100;A8=8192;B0=25 4;B1=8190;BI=8190;C2=dd_;C
X=1b503a9"

Thanks
Andrew




___________________________________________
Andrew J. P. Maclean
Centre for Autonomous Systems
The Rose Street Building J04
The University of Sydney* 2006* NSW
AUSTRALIA
Ph: +61 2 9351 3283
Fax: +61 2 9351 7474
URL: http://www.cas.edu.au/
___________________________________________


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:07 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com