473,395 Members | 1,497 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,395 software developers and data experts.

MS Access ODBC Driver

I need to export MySQL data to Access.

As always, there seems to be more than one way to do this.

I notice that PHP has: DB.php

If I was doing this in perl, there would be an ODBC driver
(DBD::ODBC). Is there such a thing in PHP? Can this play well with DBO?

I see some commercial driver products, but my needs are modest as I'm
not using any of Accesses special features, whatever those might be!

Jeff
Aug 23 '08 #1
4 1780

----- Original Message -----
From: "Jeff" <jeff@spam_me_not.com>
Newsgroups: comp.lang.php
Sent: Saturday, August 23, 2008 5:18 PM
Subject: MS Access ODBC Driver

I need to export MySQL data to Access.

As always, there seems to be more than one way to do this.

I notice that PHP has: DB.php

If I was doing this in perl, there would be an ODBC driver
(DBD::ODBC). Is there such a thing in PHP? Can this play well with
DBO?

I see some commercial driver products, but my needs are modest as
I'm not using any of Accesses special features, whatever those might
be!

Jeff
Hi,

can you not just install / use the PHP ODBC ?
http://nl2.php.net/odbc

I have used that with succes.
For a one time transfer you might get away with a csv export mentioned
in
this thread, but then you have to create an import specification in
Access,
since the csv file does not contain any database / field information.

Richard
Aug 24 '08 #2
Richard wrote:
----- Original Message -----
From: "Jeff" <jeff@spam_me_not.com>
Newsgroups: comp.lang.php
Sent: Saturday, August 23, 2008 5:18 PM
Subject: MS Access ODBC Driver

> I need to export MySQL data to Access.

As always, there seems to be more than one way to do this.

I notice that PHP has: DB.php

If I was doing this in perl, there would be an ODBC driver
(DBD::ODBC). Is there such a thing in PHP? Can this play well with
DBO?

I see some commercial driver products, but my needs are modest as
I'm not using any of Accesses special features, whatever those might
be!

Jeff

Hi,

can you not just install / use the PHP ODBC ?
http://nl2.php.net/odbc

I have used that with succes.
This looks good. The install notes are very sketchy and I'm
relatively new to php. Is this "installed" when php is compiled?

For a one time transfer you might get away with a csv export mentioned
in
this thread, but then you have to create an import specification in
Access,
since the csv file does not contain any database / field information.
Thanks, I suspected that. There's several users who will need to
"download" and periodically run reports. The whole thing died when they
got moved from one Verio Server to another. I've heard people say nice
things about Verio but I chalk that up to inexperience with them!

Jeff
>
Richard

Aug 24 '08 #3
On 23 Aug, 16:56, Michael Vilain <vil...@NOspamcop.netwrote:
In article <8cWdnZ0uWcbRty3VnZ2dnUVZ_uKdn...@earthlink.com> ,

*Jeff <jeff@spam_me_not.comwrote:
* *I need to export MySQL data to Access.
* *As always, there seems to be more than one way to do this.
* *I notice that PHP has: DB.php
* *If I was doing this in perl, there would be an ODBC driver
(DBD::ODBC). Is there such a thing in PHP? Can this play well with DBO?
* I see some commercial driver products, but my needs are modest as I'm
not using any of Accesses special features, whatever those might be!
* *Jeff
Why ever would you want to do that?

If you must, then export the MySQL tables over ODBC and map them in
Access. But you'll probably need to set all your queries to run as
passthru to get decent performance.
>
Why not use phpMyAdmin and export to a CSV file? *AFAIK, Access can read
that just fine. *I see no need to output directly to Access. *Use an
intermediate file.
Why not just export it as SQL commands - then you just paste the SQL
to create the table.

C.
Aug 24 '08 #4

"Jeff" <jeff@spam_me_not.comwrote in message
news:5K******************************@earthlink.co m...
Richard wrote:
>----- Original Message -----
From: "Jeff" <jeff@spam_me_not.com>
Newsgroups: comp.lang.php
Sent: Saturday, August 23, 2008 5:18 PM
Subject: MS Access ODBC Driver

>> I need to export MySQL data to Access.

As always, there seems to be more than one way to do this.

I notice that PHP has: DB.php

If I was doing this in perl, there would be an ODBC driver
(DBD::ODBC). Is there such a thing in PHP? Can this play well with
DBO?

I see some commercial driver products, but my needs are modest as
I'm not using any of Accesses special features, whatever those
might be!

Jeff

Hi,

can you not just install / use the PHP ODBC ?
http://nl2.php.net/odbc

I have used that with succes.

This looks good. The install notes are very sketchy and I'm
relatively new to php. Is this "installed" when php is compiled?
Yes, as far as I remember I never installed anything extra.

>For a one time transfer you might get away with a csv export
mentioned in
this thread, but then you have to create an import specification in
Access,
since the csv file does not contain any database / field
information.

Thanks, I suspected that. There's several users who will need to
"download" and periodically run reports. The whole thing died when
they got moved from one Verio Server to another. I've heard people
say nice things about Verio but I chalk that up to inexperience with
them!
If your users are on Windows, another option would be to use the ODBC
driver for mySQL and use "linked tables" in Access.
Maybe you do not want this, because your users will have access to the
"live" data.
Maybe create a read-only / restricted user for the ODBC connection?

The ODBC connection from Access I have used many times too, and works,
although it has some quirks.

Richard
Aug 27 '08 #5

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

Similar topics

0
by: chris | last post by:
Hi, I try to connect to Access with php with te code below. The database and table are ok. <?php include('../adodb/adodb.inc.php'); $db =& ADONewConnection('access'); $dsn =...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
13
by: Zlatko Matić | last post by:
Is it possible to use Access as front-end for POstgreSQL and how ? What about Access Projects (.adp) and PostgreSQL ?
2
by: Chuck Ritzke | last post by:
Hi all, I am getting an intermittant error after uploading a project from my development machine. I click on a link which opens an aspx page that, upon page load, reads a very small amount of...
0
by: bazzer | last post by:
hey, i am using visual basic.net 2003 and have an ASP.NET webform application thats accessing a microsoft access 2003 database. i kept getting the following error when i tried to run it: ERROR ...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
8
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query...
6
by: SEFL | last post by:
Hi there, I'm trying to write a VBS that accesses a local database on my system (personal project). I'm running Windows XP 64-bit with Access XP. Every time I try to access the database on...
21
by: lesperancer | last post by:
I've got an access97 reporting mdb that pulls data (77,000 rows) from a sql server table into a local table to run reports if the local table is part of the reporting MDB, the insert statement...
1
by: Chevylover54 | last post by:
We have been using ODBC connections that are in the registry of the computer. However these connections aren't in by default so when a new user uses the Access program or when a current user goes to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.