Click to See Complete Forum and Search --> : ADO Error .... Path problem may be


ankitysl
August 31st, 2000, 10:17 AM
Can anyone tell me what could be the reason for this error
Code Meaning: IDispatch Error # 3149
Source : Microsoft JET Database Engine
Description: Cannot start your application. The work group information file is missing or opened exclusively by another user.

The C++ executable is in G:\Inetpub\wwwroot\cgi-bin director and the Access database too is in the same directory.Its on a server ...

The code is:
char *csConn = "Provider=Microsoft.JET.OLEDB.4.0;Data source =db1.mdb";
_bstr_t strcnn(csConn);

pC.CreateInstance(__uuidof(Connection));

// pC->Open("DSN=db1;UID=ankit;PWD=ankit","","",-1);
pC->Open(strcnn,"Admin","",-1);

dfwade
September 10th, 2000, 01:23 PM
The problem is that another user has the database open. You need to open the database in shared mode and not exclusive mode, look at connectstrings is help

TANSTAAFL - There ain't no such thing as a free lunch