Home > Archive > MySQL Server Forum > August 2005 > Data types when using Access with MySQL









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Data types when using Access with MySQL
zaphod

2005-08-07, 9:23 am

I want to use MS Accesss as a front end for an existing MySQL database.
Since Acceess doesn't have the same data types, eg. ENUM, am I tied to the
smaller subset of types supported by Access? I'm assuming I have to
duplicate the MySQL schema within Access then link the resulting tables.

Garry
zaphod

2005-08-07, 9:23 am

zaphod wrote:

> I want to use MS Accesss as a front end for an existing MySQL database.
> Since Acceess doesn't have the same data types, eg. ENUM, am I tied to the
> smaller subset of types supported by Access? I'm assuming I have to
> duplicate the MySQL schema within Access then link the resulting tables.
>
> Garry


Further to my question, if I wish to execute SQL queries from within Access
am I constrained by the subset of SQL supported by Access?

Garry
Thomas Bartkus

2005-08-10, 11:24 am


"zaphod" <none@none.com> wrote in message
news:42f612bf$0$9153
6$ed2e19e4@ptn-nntp-reader04.plus.net...
> zaphod wrote:
>
the[color=darkred]

Since we ise MS Office heavily in front of a MySQL/Linux server, we tend to
shy away from incompatible data types that have no Microsoft equivalent.
E.G. you *might* be able to use something like BIGINT, but there will be
gotchas so we just practice avoidance. I *think* enums will come across (to
Office) as a simple text field.

Given the caveat about incompatible types (and why would you choose to use
them anyway?), you generally don't worry about duplicating MySQL schemas
within Access. Just use the MySQL ODBC driver and create linked tables. The
ODBC driver will do the translating. The only potential nuisance is when
you change the underlying (linked) table. In this case you *must* use the
Access linked table manager to update the link or subtle errors can creep in
without warning.

[color=darkred]
> Further to my question, if I wish to execute SQL queries from within

Access
> am I constrained by the subset of SQL supported by Access?


Not if you use a Pass Through query! You can elect to define an Access
query as a "Pass Through" query in which case the SQL statement you enter
will go directly to MySQL to be parsed by the server. This, of course, can
be anything MySQL understands. Very cool!

Thomas Bartkus


Thomas Bartkus

2005-08-11, 1:24 pm


"zaphod" <none@none.com> wrote in message
news:42f612bf$0$9153
6$ed2e19e4@ptn-nntp-reader04.plus.net...
> zaphod wrote:
>
the[color=darkred]

Since we ise MS Office heavily in front of a MySQL/Linux server, we tend to
shy away from incompatible data types that have no Microsoft equivalent.
E.G. you *might* be able to use something like BIGINT, but there will be
gotchas so we just practice avoidance. I *think* enums will come across (to
Office) as a simple text field.

Given the caveat about incompatible types (and why would you choose to use
them anyway?), you generally don't worry about duplicating MySQL schemas
within Access. Just use the MySQL ODBC driver and create linked tables. The
ODBC driver will do the translating. The only potential nuisance is when
you change the underlying (linked) table. In this case you *must* use the
Access linked table manager to update the link or subtle errors can creep in
without warning.

[color=darkred]
> Further to my question, if I wish to execute SQL queries from within

Access
> am I constrained by the subset of SQL supported by Access?


Not if you use a Pass Through query! You can elect to define an Access
query as a "Pass Through" query in which case the SQL statement you enter
will go directly to MySQL to be parsed by the server. This, of course, can
be anything MySQL understands. Very cool!

Thomas Bartkus


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com