473,770 Members | 4,522 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1814

----- Original Message -----
From: "Jeff" <jeff@spam_me_n ot.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_n ot.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...@NOspamc op.netwrote:
In article <8cWdnZ0uWcbRty 3VnZ2dnUVZ_uKdn ...@earthlink.c om>,

*Jeff <jeff@spam_me_n ot.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_n ot.comwrote in message
news:5K******** *************** *******@earthli nk.com...
Richard wrote:
>----- Original Message -----
From: "Jeff" <jeff@spam_me_n ot.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
3082
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 = "Driver={Microsoft Access Driver (*.mdb)};Dbq=newres.mdb;Uid=Admin;Pwd=;"; $db->Connect($dsn);
49
14356
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 application is relatively big: around 200 tables, 200 forms and sub-forms, 150 queries and 150 repports, 5GB of data (SQL Server 2000), 40 users. I'm wondering what are the disadvantages of using Access as front-end? Other that it's not...
13
7292
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
2288
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 data from an MS Access database, using ODBC and a stored query. There is no problem on my development machine. On the production server though, I get the intermittant error shown below. If I click back and forth between the problem page and the...
0
755
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 General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR Driver's SQLSetConnectAttr failed ERROR General error Unable to open registry key 'Temporary (volatile) Jet DSN...
0
12067
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 '/CinemaBookingSystem' Application. -------------------------------------------------------------------------------- ERROR General error Unable to open registry key 'Temporary (volatile) Jet DSN for process
8
9637
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 work from
6
13371
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 the machine, I get the following error: "Provider is not specified and there is no designated default provider."
21
4694
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 (16 fields) takes less than 30secs, but because of db-bloat, I moved the local table to a 2nd MDB and per postings, this 2nd MDB is copied into a folder and linked as a 'temp' MDB every time I run my reporting mdb
1
6050
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 a different computer, we have to send them the batch program to put the ODBC hooks on that machine. We want to get around that by using Pass-Through queries and the ODBC connection string. What we have got to work is this: ...
0
9602
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10237
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10071
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10017
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5326
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3987
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2832
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.