0x80040e4d(DB_SEC_E_AUTH_FAILED) from ADOX::Catalog::Create
- From: "Alexander Melentyev" <AlexanderMelentyev@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 12 Sep 2005 11:05:11 -0700
Hi All,
In my application I use ADOX to create password protected database using
code below:
CComPtr<ADOX::_Catalog> spCatalog;
spCatalog.CoCreateInstance(__uuidof(ADOX::Catalog)));
….
HRESULT hr = spCatalog->raw_Create(bstrConnectionString, &vtConnection);
The connection string which I supplied for
Provider=Microsoft.Jet.OLEDB.4.0; Data Source="database.mdb"; Jet
OLEDB:Create System Database=False; Jet OLEDB:Database Password="password"
On some client’s machines I have got error 0x80040e4d (DB_SEC_E_AUTH_FAILED)
The error description provided by Jet: “Microsoft JET Database Engine Cannot
start your application. The workgroup information file is missing or opened
exclusively by another user.”
The problem is because I cannot reproduce this behavior on any my machine.
The client and I both use the same versions of MDAC, Jet, Access Windows, SP.
I didn’t use user level security, the database is only password protected …
so I don’t understand what may be a reason for this error. It looks like
authentification failed during provider initialization. Why?
On my current machine I can remove any *.mdw files and database creation
still successful.
I found out that during database creation Jet tries to find (NOT CREATE)
“system.mdb” in the current directory and if this file exists and is locked
by another process then I got the 0x80040e4d HRESULT, but error description
is quite different.
So the question is: do you know the reason to return DB_SEC_E_AUTH_FAILED
ADOX::Catalog::Create?
Any thoughts are helpful…
.
- Prev by Date: RE: Crystal Report Logon Error in Web Form
- Next by Date: RE: Crystal Report Logon Error in Web Form
- Previous by thread: SQL delete unrelated records
- Next by thread: Error: There was a problem retrieving the list OLE DB providers
- Index(es):
Relevant Pages
|
|