I started to play with JET api (using Platform SDK April 2005) and I ran into
a quite strange situation.
[Description]
I have an offline .edb database and its .stm (no .log or .chk). These files
are passed as arguments to a console application, that does this sequence of
calls:
JetCreateInstance2
JetInit2
JetBeginSession
JetAttachDatabase2
JetOpenDatabase
JetCloseDatabase
JetDetachDatabase
JetEndSession
JetTerm2
(with or without the "2" counterparts, the result is the same).
[Results]
The console application resolves esent.dll exports dynamically and produces
this output:
C:\Temp\exoff>tex
JET_VERSION_XP defined
err= 0 JetSetSystemParameter JET_errSuccess, Successful Operation
err= 0 JetSetSystemParameter JET_errSuccess, Successful Operation
err= 0 JetSetSystemParameter JET_errSuccess, Successful Operation
err= 0 JetCreateInstance2 JET_errSuccess, Successful Operation
err= 0 JetSetSystemParameter JET_errSuccess, Successful Operation
err= 0 JetSetSystemParameter JET_errSuccess, Successful Operation
err= 0 JetInit2 JET_errSuccess, Successful
Operation
err= 0 JetBeginSession JET_errSuccess, Successful Operation
session id=25232000
attaching database C:\temp\exoff\test.edb
err= -1 JetAttachDatabase2 JET_wrnNyi, Function Not Yet Implemented
err= -1203 JetOpenDatabase JET_errDatabaseNotFound, No such database
err= -1010 JetCloseDatabase JET_errInvalidDatabaseId, Invalid
database id
err= -1203 JetDetachDatabase JET_errDatabaseNotFound, No such database
err= 0 JetEndSession JET_errSuccess, Successful Operation
err= 0 JetTerm2 JET_errSuccess, Successful Operation
[Question]
As one can see, what troubles me is that the JetAttachDatabase(2) call
returns the error JET_wrnNyi (function not yet implemented).
Any searches for what may be the cause of such an error returned gave 0
useable results (seems also the samples are very few, more exactly I found 0
samples on web :) ).
Any ideas on what I am doing wrong?
Many thanks,
Cristian Amarie
Andrew Sword [MVP] - 12 Dec 2005 10:28 GMT
I would try a search of www.microsoft.com/msdn .
>I started to play with JET api (using Platform SDK April 2005) and I ran
>into
[quoted text clipped - 64 lines]
> Many thanks,
> Cristian Amarie
Cristian Amarie - 12 Dec 2005 15:13 GMT
Already done, but no references. I'll keep trying.
Cristian
> I would try a search of www.microsoft.com/msdn .
>
[quoted text clipped - 66 lines]
> > Many thanks,
> > Cristian Amarie