Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access

Status
Not open for further replies.

Brian56

Programmer
May 29, 2003
66
CA
Anyone know of a way to connect to MS Access DB ?

Thanks

Brian
 
hey sleipnir, i have a small doubt (Note: i havent searched the access forum. but will do)..

if Access is installed does ADO also get installed? or is it a VB control? cause all examples in acces help use ADO...

Known is handfull, Unknown is worldfull
 
Hi,

I'm having a similar problem here too. I have an MsAccess database on a WinXP computer and PHP running on a linux machine. Afters hours of trail&error I don't find a way to let my PHP script connect with the access database.

System DNS is set up and works fine, tried the comments on php.net too (regedit and change path to network path, .. ), but none off them were successfull.

Normally I wouldn't use MsAccess as database but it's for a db migration.. :)

Thanks for your time,

T.
 
did u try odbc commands? does ur script have permissions for the folder that holds the mdb file???

Known is handfull, Unknown is worldfull
 
what do you mean by "odbc commands"? I've installed unixODBC on the linux server so odbc is supported... I use odbc_connect() to make the connection (but that doesn't work.. )

I don't think windows works with permissions, so guess this is not an issue. (?)
 
>> I have an MsAccess database on a WinXP computer and PHP running on a linux machine

oops, didnt read it correctly.

the database is on a different machine???

Known is handfull, Unknown is worldfull
 
Correct, the database is on a different machina. I'll explain the situation a little more..

1. WinXP computer with MsAccess database
2. Linux (Mandrake) server with php/mysql/..

2 needs to connect to 1, retrieve the data stored in the MsAccess database and put it in the mysql on 2. The scenario (=script) works fine when everything is on the same machine.. too bad this isn't the real situation..

Hope you guys can help me out here.
 
the system DSN that u use has a path right? where is it pointing to?

are both the systems connected to the net???

Known is handfull, Unknown is worldfull
 
***) I'v made a System-DNS via the windows control pannel.
- Name: vlor_gebruikers
- Driver: Microsoft Access Driver (*.mdb)
- Then changed the path via regedt32 to \\192.168.1.105\vlor_db\Gebruikers.mdb (See: and
***)
To connect with it I have:
function dbODBCConnect() {
$odbc_naam = "\\\\192.168.1.105\\vlor_db\\Gebruikers.mdb";
$connectie = @odbc_connect($odbc_naam,'','');
return $connectie;
}

Thanks for replying
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top