473,394 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Jet ODBC to mySQL DSN-less Connection


I need to Connect to an online mySQL database from Access using JET
ODBC with no saved DSN.

Anyone out there who as made this work and can give example of how
it's done? I've seen lots of posts saying it's possible, but no code.

This has to be Jet ODBC, because the users are technophobes and I
wouldnt expect them to download and install a myODBC driver - or
create a working DSN for that matter. My visiting the sites and
configuring each computer isnt an option.

There will be no heavy duty data transfer, I'm just using the mySQL db
to allocate resources between remote locations.

So if there are other alternative ways to connect to a mySQL db from
Access that would work for this situation, I'm all ears!

I'll continue searching and will post the solution, if I find one - in
the mean time any help would be HUGELY appreciated.

Thanks in advance

Feb 14 '07 #1
7 5541
I need to Connect to an online mySQL database from Access using JET
ODBC with no saved DSN.
There is a sql server example here:

http://www.accessmvp.com/djsteele/DSNLessLinks.html
>
This has to be Jet ODBC, because the users are technophobes and I
wouldnt expect them to download and install a myODBC driver - or
create a working DSN for that matter. My visiting the sites and
configuring each computer isnt an option.
You sadly mistaken here. To use JET odbc with mysql, you need
the MySql drivers...else how is JET supposed to know how to
read database it never seen? It is up to the vendor to provide a
ODBC driver. The reason it done this way so that oracle,or
Informix, or MySql, or sql-server vendors simple write a
ODBC driver, and then presto -- jet can then read that
database it never seen, or used, or even how the data
base works!

So, I not sure where you got the idea that no new database
drivers are not going to be needed, nor installed. You most
CERTAINLY have to install those MySql drivers.

Check out the MySql newsgroups and support for some
example connection strings to MySql using odbc, those
connection examples will work with ms-access...
>I'll continue searching and will post the solution, if I find one - in
the mean time any help would be HUGELY appreciated.
Check with the MySql support people for example DSN less
connection strings. They are the ones that should be providing
you with this information. It sounds like their support is not
helping you much. There is tons of examples using sql server,
but the MySql folks will give you the conneciton strings
needed if you ask them....

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com


Feb 14 '07 #2
Once you have the MySQL ODBC driver installed (and there's no getting
around that, as Albert has explained) you can try using the sample
connection strings here:

http://www.connectionstrings.com/?carrier=mysql

On Feb 14, 7:09 am, "Albert D. Kallal" <PleaseNOOOsPAMmkal...@msn.com>
wrote:
I need to Connect to an online mySQL database from Access using JET
ODBC with no saved DSN.

There is a sql server example here:

http://www.accessmvp.com/djsteele/DSNLessLinks.html
This has to be Jet ODBC, because the users are technophobes and I
wouldnt expect them to download and install a myODBC driver - or
create a working DSN for that matter. My visiting the sites and
configuring each computer isnt an option.

You sadly mistaken here. To use JET odbc with mysql, you need
the MySql drivers...else how is JET supposed to know how to
read database it never seen? It is up to the vendor to provide a
ODBC driver. The reason it done this way so that oracle,or
Informix, or MySql, or sql-server vendors simple write a
ODBC driver, and then presto -- jet can then read that
database it never seen, or used, or even how the data
base works!

So, I not sure where you got the idea that no new database
drivers are not going to be needed, nor installed. You most
CERTAINLY have to install those MySql drivers.

Check out the MySql newsgroups and support for some
example connection strings to MySql using odbc, those
connection examples will work with ms-access...
I'll continue searching and will post the solution, if I find one - in
the mean time any help would be HUGELY appreciated.

Check with the MySql support people for example DSN less
connection strings. They are the ones that should be providing
you with this information. It sounds like their support is not
helping you much. There is tons of examples using sql server,
but the MySql folks will give you the conneciton strings
needed if you ask them....

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKal...@msn.com

Feb 14 '07 #3
BillCo wrote:
I need to Connect to an online mySQL database from Access using JET
ODBC with no saved DSN.
In addition to Albert and Gord's responses, note that the ADO methods
for DSNless connections make the use of MS Access reports difficult, if
not impossible. IOW, you can't set a report recordsource to and ADO
recordsource
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Feb 14 '07 #4
Thanks Albert - that clears things up considerably! No way around
MyODBC, huh? That makes sense. Getting users to install ODBC drivers
really isnt an option - so I guess I'm back to the drawing board!

Thanks to all for your help


Feb 14 '07 #5
"BillCo" <co**********@gmail.comwrote in message
news:11**********************@l53g2000cwa.googlegr oups.com...
Thanks Albert - that clears things up considerably! No way around
MyODBC, huh? That makes sense. Getting users to install ODBC drivers
really isnt an option - so I guess I'm back to the drawing board!
You could consider using web services, or even the wininet library to use
http gets from the web site....

however, this would requite you to code on the web side also. If you using
wininet, then you can
gab, and communicate with the web site (if you write stuff on the web site
to handle this).

You could also consider web services...but, then the end user will have to
install the soap tool kit add in for
ms-access, and run .net services on the web site.

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
Feb 14 '07 #6
BillCo wrote:
Thanks Albert - that clears things up considerably! No way around
MyODBC, huh? That makes sense. Getting users to install ODBC drivers
really isnt an option - so I guess I'm back to the drawing board!
I don't know - if I can get the people in my environment who are still
living in pre-desktop comput er times to do this, you must have a crowd
of australopithecus there...
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Feb 14 '07 #7
I don't know - if I can get the people in my environment who are still
living in pre-desktop comput er times to do this, you must have a crowd
of australopithecus there...
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
australopithecus ...you have no idea - I'm actually dealing with
lucy! But what's worse, the user that is terrified of the computer and
completely freezes up when you try to explain things (no matter how
slow, simple and calm you go) - or the guy who _thinks_ he knows what
he is doing when he updates random drivers?

I think I've settled on going around the offices and installing the
componants myself - turns out that they need other stuff too.

Feb 15 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: webhead74 | last post by:
Hi, I've worked on this for a couple of days & can't figure out what I'm doing wrong. I'm trying to connect to a remote AS400 database using odbc & php. Here's my environment: Server: RedHat...
0
by: Edmond Doudard | last post by:
Hi, I have just installed the MySQL ODBC driver 3.51 on an XP machine which is behind a proxy. When I configure my DSN, I can't access the MySQL server which is in the "outside" world. I...
1
by: Rick Lones | last post by:
I am using mysql 4.1.2 on a Win2K (SP3) host. I cannot seem to create a useable MyODBC DSN unless I set user=ODBC with no password. When I try to test a non-null password in the DSN configuration...
2
by: John Thorne | last post by:
Hello Windows XP sp2, Installed MyODBC 3.51 and the driver. It does not appear in the User/System DSN ODBC control panel. Does not appear in the driver tab Is listed in the ODBCINST.INI and...
1
by: rguti | last post by:
Anybody know when the new version of the ODBC Driver is gonna be out? I'm using 3.51.11-1, but I'm having problems transferring information from SQL Server. Thanks.
3
by: Lauren Quantrell | last post by:
Maybe a dumb question - I'm new to ODBC. How do I install an Access ..mde file on a user's workstation and create the ODBC connection to the backend SQL Server database without having to go through...
3
by: Bob | last post by:
All, I have read through lots of postings regarding my concerns, but I haven't found what I am looking for. The center (non profit University) where I work collects scientific data about...
1
by: Maileen | last post by:
Hi, I'm writing a VC++.net 2005 application and i would like to use the ODBC connector. I would like to allow user to choose the DB he wants to have (MS SQL, PostgreSQl, MySQL, Oracle,...) by...
3
by: Mike | last post by:
I have transferred the data from Access to MySQL using MySQL's tool. The transfer worked great and saved me a lot of time (thanks MySQL). Now I'm trying to get the Access database, or a new access...
2
by: Dale Sampson | last post by:
My app uses an ODBC connection for a .mdb file. I want the app to create the source if it does not already exist (I copy a blank .mdb file to the users data store if it doesn't exist). I see how...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.