Connecting Tech Pros Worldwide Forums | Help | Site Map

Read data from Access MDB file?

Martin
Guest
 
Posts: n/a
#1: Apr 4 '08
From a PHP script, is there any way to retrieve data from an MS Access
database that's located on another computer (on a LAN) other than by
using ODBC?

I posted a question here a couple of weeks ago about the problems I
was having trying to do this via ODBC. I stated then that I was giving
up trying to get it to work but I didn't. I foolishly have spent quite
a few more hours in a futile attempt to get this to work. Now I'm to a
point where I don't know anything further to try.

No, I don't have the option of switching to a different database
format. The data I need to read is in MS Access MDB files and that's
not going to change.

I don't have a problem reading an MDB file when it's on the same
computer that my PHP script is running on but the whole idea of what
I'm trying to do is to read from a file that's located on a different
computer.

Are there any alternatives?

Thanks.

Richard
Guest
 
Posts: n/a
#2: Apr 5 '08

re: Read data from Access MDB file?



"Martin" <ironwoodcanyon@gmail.comwrote in message
news:gn8dv3t74hss7473kt1kf6cloaqkkhjbfq@4ax.com...
Quote:
From a PHP script, is there any way to retrieve data from an MS
Access
database that's located on another computer (on a LAN) other than by
using ODBC?
>
I posted a question here a couple of weeks ago about the problems I
was having trying to do this via ODBC. I stated then that I was
giving
up trying to get it to work but I didn't. I foolishly have spent
quite
a few more hours in a futile attempt to get this to work. Now I'm to
a
point where I don't know anything further to try.
>
No, I don't have the option of switching to a different database
format. The data I need to read is in MS Access MDB files and that's
not going to change.
>
I don't have a problem reading an MDB file when it's on the same
computer that my PHP script is running on but the whole idea of what
I'm trying to do is to read from a file that's located on a
different
computer.
>
Are there any alternatives?
>
Thanks.
Hello again,

I just got back to checking how my setup was.... and after some
fiddling I got it to work again.
My mdb file is on a remote share, and I use an UNC path.

The trick is this:
Your webserver / PHP combo need access to the file.
That means it needs a valid local user account on the remote computer.

Check what the user account of your webserver is, and create that
account on the remote computer.
Or: change the user the webserver is running under.
Whatever is easiest.

I found a nice doc about it here, it wasnt hard to find though....
surprised me you missed it.

http://support.microsoft.com/kb/253580/EN-US/

Richard.


Richard
Guest
 
Posts: n/a
#3: Apr 5 '08

re: Read data from Access MDB file?



"Richard" <root@localhostwrote in message
news:47f6c534$0$3038$dbd43001@news.euronet.nl...
Quote:
>
"Martin" <ironwoodcanyon@gmail.comwrote in message
news:gn8dv3t74hss7473kt1kf6cloaqkkhjbfq@4ax.com...
Quote:
>From a PHP script, is there any way to retrieve data from an MS
>Access
>database that's located on another computer (on a LAN) other than
>by
>using ODBC?
>>
>I posted a question here a couple of weeks ago about the problems I
>was having trying to do this via ODBC. I stated then that I was
>giving
>up trying to get it to work but I didn't. I foolishly have spent
>quite
>a few more hours in a futile attempt to get this to work. Now I'm
>to a
>point where I don't know anything further to try.
>>
>No, I don't have the option of switching to a different database
>format. The data I need to read is in MS Access MDB files and
>that's
>not going to change.
>>
>I don't have a problem reading an MDB file when it's on the same
>computer that my PHP script is running on but the whole idea of
>what
>I'm trying to do is to read from a file that's located on a
>different
>computer.
>>
>Are there any alternatives?
>>
>Thanks.
>
Hello again,
>
I just got back to checking how my setup was.... and after some
fiddling I got it to work again.
My mdb file is on a remote share, and I use an UNC path.
>
The trick is this:
Your webserver / PHP combo need access to the file.
That means it needs a valid local user account on the remote
computer.
>
Check what the user account of your webserver is, and create that
account on the remote computer.
Or: change the user the webserver is running under.
Whatever is easiest.
>
I found a nice doc about it here, it wasnt hard to find though....
surprised me you missed it.
>
http://support.microsoft.com/kb/253580/EN-US/
>
Richard.
>
>
Oops....
the link should have been:

http://support.microsoft.com/kb/166029/

R.


Closed Thread