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

ODBC connection to a DB on another computer?

In a PHP script, I'm using a DSN-less ODBC connection to connect to an
MS Access database. Like so:

$DBConn = 'Driver={Microsoft Access Driver (*.mdb)};
DBQ=c:\path\to\MyDatabase.MDB';
$conn = odbc_connect($DBConn,'','');

This works fine - no problems.

Now, I want to connect to an Access database that is on another
computer (on a LAN). Using a similar statement:

$DBConn = 'Driver={Microsoft Access Driver (*.mdb)};
DBQ=\\ComputerName\c\path\to\MyDatabase.MDB';
$conn = odbc_connect($DBConn,'','');

But this results in an error:

SQL error: [Microsoft][ODBC Microsoft Access Driver]General error
Unable to open registry key 'Temporary (volatile) Jet DSN for process
0xe80 Thread 0x8a8 DBC 0xf8e024'...

Is it possible to do this? Can anyone tell me how to get past this?

Thanks.
Feb 8 '08 #1
3 3918
Rob
On Feb 8, 9:05*pm, Jack <ironwoodcan...@gmail.comwrote:
In a PHP script, I'm using a DSN-less ODBC connection to connect to an
MS Access database. Like so:

$DBConn = 'Driver={Microsoft Access Driver (*.mdb)};
DBQ=c:\path\to\MyDatabase.MDB';
$conn = odbc_connect($DBConn,'','');

This works fine - no problems.

Now, I want to connect to an Access database that is on another
computer (on a LAN). Using a similar statement:

$DBConn = 'Driver={Microsoft Access Driver (*.mdb)};
DBQ=\\ComputerName\c\path\to\MyDatabase.MDB';
$conn = odbc_connect($DBConn,'','');

But this results in an error:

SQL error: [Microsoft][ODBC Microsoft Access Driver]General error
Unable to open registry key 'Temporary (volatile) Jet DSN for process
0xe80 Thread 0x8a8 DBC 0xf8e024'...

Is it possible to do this? Can anyone tell me how to get past this?

Thanks.
Try

http://www.xlinesoft.com/asprunner/docs/error_unable_to_open_registry_key_'temporary_(vola tile)_jet_dsn_for_process_..._.htm

.... or .....

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

Rob.
Feb 11 '08 #2
On 11 Feb, 13:06, Rob <ratkin...@tbs-ltd.co.ukwrote:
On Feb 8, 9:05 pm, Jack <ironwoodcan...@gmail.comwrote:
In a PHP script, I'm using a DSN-less ODBC connection to connect to an
MS Access database. Like so:
$DBConn = 'Driver={Microsoft Access Driver (*.mdb)};
DBQ=c:\path\to\MyDatabase.MDB';
$conn = odbc_connect($DBConn,'','');
This works fine - no problems.
Now, I want to connect to an Access database that is on another
computer (on a LAN). Using a similar statement:
$DBConn = 'Driver={Microsoft Access Driver (*.mdb)};
DBQ=\\ComputerName\c\path\to\MyDatabase.MDB';
$conn = odbc_connect($DBConn,'','');
But this results in an error:
SQL error: [Microsoft][ODBC Microsoft Access Driver]General error
Unable to open registry key 'Temporary (volatile) Jet DSN for process
0xe80 Thread 0x8a8 DBC 0xf8e024'...
Is it possible to do this? Can anyone tell me how to get past this?
Thanks.

Try

http://www.xlinesoft.com/asprunner/d..._open_registry...

.... or .....

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

Rob.
Let me guess, you put
Unable to open registry key
into google and pressed "I'm feeling lucky"

I guessed Google must have been having problems when the OP tried this
before posting here!
Feb 11 '08 #3
Rob
On Feb 11, 1:46*pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
On 11 Feb, 13:06, Rob <ratkin...@tbs-ltd.co.ukwrote:


On Feb 8, 9:05 pm, Jack <ironwoodcan...@gmail.comwrote:
In a PHP script, I'm using a DSN-less ODBC connection to connect to an
MS Access database. Like so:
$DBConn = 'Driver={Microsoft Access Driver (*.mdb)};
DBQ=c:\path\to\MyDatabase.MDB';
$conn = odbc_connect($DBConn,'','');
This works fine - no problems.
Now, I want to connect to an Access database that is on another
computer (on a LAN). Using a similar statement:
$DBConn = 'Driver={Microsoft Access Driver (*.mdb)};
DBQ=\\ComputerName\c\path\to\MyDatabase.MDB';
$conn = odbc_connect($DBConn,'','');
But this results in an error:
SQL error: [Microsoft][ODBC Microsoft Access Driver]General error
Unable to open registry key 'Temporary (volatile) Jet DSN for process
0xe80 Thread 0x8a8 DBC 0xf8e024'...
Is it possible to do this? Can anyone tell me how to get past this?
Thanks.
Try
http://www.xlinesoft.com/asprunner/d..._open_registry...
.... or .....
http://support.microsoft.com/kb/295297
Rob.

Let me guess, you put
Unable to open registry key
into google and pressed "I'm feeling lucky"

I guessed Google must have been having problems when the OP tried this
before posting here!- Hide quoted text -

- Show quoted text -
Not far wrong - I did make sure the sites actually seemed appropriate.

Surely there must be a forums equivilent for RTFM - what about STFW :)
Feb 11 '08 #4

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

Similar topics

5
by: SerGioGio | last post by:
Hello, I am going nuts. I am trying to connect to my local ORACLE instance using ODBC. It used to work few weeks ago, but it fails now. Connection with: - SQL*plus: connection works! -...
12
by: Remco Groot Beumer | last post by:
Hello all, Currently we are implementing an Access database which has to send some (not much) data over a WAN. We are using an Access front end and an Access back end. Basicly the front end runs...
8
by: Dakkar | last post by:
I wrote a program with c# for connecting mysql and taking data from it but when someone without me try to execute the program they are taking this error ERROR Data source name not found and...
1
by: Jordi | last post by:
Hi, I have a problem when accesing data with and ODBC provider under asp.Net applications. The question is that if I run the application in the same server where data is stored then data is...
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...
1
by: ~john | last post by:
I just installed PHP 5.1.4 with SQL Server 2005 on my laptop. PHP is running fine and so is SQL Server 2005. When I try to connect to SQL Server from my my PHP code I get this error. Warning:...
12
by: mukeshhtrivedi | last post by:
We have 4 MS Access Databases with few tables on each DB. There are some reports which uses ODBC. When I try to use the report and input date range and click ok I get error "ODBC --call failed" it...
7
by: BillCo | last post by:
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...
9
by: Martin | last post by:
Using ODBC in a PHP script, I'm trying to read an MS Access MDB file that resides on another computer on my LAN. I'm getting the error: Warning: odbc_connect() : SQL error: The Microsoft Jet...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.