473,778 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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={Micros oft Access Driver (*.mdb)};
DBQ=c:\path\to\ MyDatabase.MDB' ;
$conn = odbc_connect($D BConn,'','');

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={Micros oft Access Driver (*.mdb)};
DBQ=\\ComputerN ame\c\path\to\M yDatabase.MDB';
$conn = odbc_connect($D BConn,'','');

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 3939
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={Micros oft Access Driver (*.mdb)};
DBQ=c:\path\to\ MyDatabase.MDB' ;
$conn = odbc_connect($D BConn,'','');

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={Micros oft Access Driver (*.mdb)};
DBQ=\\ComputerN ame\c\path\to\M yDatabase.MDB';
$conn = odbc_connect($D BConn,'','');

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.c om/asprunner/docs/error_unable_to _open_registry_ key_'temporary_ (volatile)_jet_ dsn_for_process _..._.htm

.... or .....

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

Rob.
Feb 11 '08 #2
On 11 Feb, 13:06, Rob <ratkin...@tb s-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={Micros oft Access Driver (*.mdb)};
DBQ=c:\path\to\ MyDatabase.MDB' ;
$conn = odbc_connect($D BConn,'','');
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={Micros oft Access Driver (*.mdb)};
DBQ=\\ComputerN ame\c\path\to\M yDatabase.MDB';
$conn = odbc_connect($D BConn,'','');
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...@y ahoo.comwrote:
On 11 Feb, 13:06, Rob <ratkin...@tb s-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={Micros oft Access Driver (*.mdb)};
DBQ=c:\path\to\ MyDatabase.MDB' ;
$conn = odbc_connect($D BConn,'','');
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={Micros oft Access Driver (*.mdb)};
DBQ=\\ComputerN ame\c\path\to\M yDatabase.MDB';
$conn = odbc_connect($D BConn,'','');
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
102557
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! - DataDirect 5.0 Oracle Wire protocol (3rd party ODBC driver): connection works when I hit the driver's "test connection"
12
4333
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 local, but at the end of the session the front end needs to write the data to the back end on the WAN. The responsible IT manager asked me to use a ODBC linkage between the database, since this sends smalles packages of data (which minimizes the...
8
40638
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 no default driver
1
4160
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 displayed normaly, but if the ODBC catalog file is in other computer in local netwok (with his Domain Server SBS 2003) I receive next error: ERROR File not found. ERROR Error de SQLSetConnectAttr del controlador ERROR El controlador no admite...
8
9638
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
1
13429
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: odbc_connect() : SQL error: Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in C:\Inetpub\wwwroot\index.php on line 5 Here's my connection string that is causing the error
12
14482
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 happens on my computer only. I have just setup Windows XP SP2 with latest updates and MS Office Prof. 2000 and in ODBC I have same dirvers installed as other users who are able to access reports without any problem. Can anybody tell me what...
7
5574
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 saying it's possible, but no code. This has to be Jet ODBC, because the users are technophobes and I wouldnt expect them to download and install a myODBC driver - or create a working DSN for that matter. My visiting the sites and configuring...
9
7126
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 database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data., SQL state S1000 in SQLConnect in ... The file is NOT already opened exclusively (or in any other manner)...
0
9629
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
10298
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...
1
10069
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
9923
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8957
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7475
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6723
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5500
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2865
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.