Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Exchange Server / Applications / December 2005

Tip: Looking for answers? Try searching our database.

JetAttachDatabase2 returns JET_wrnNyi

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cristian Amarie - 17 Nov 2005 20:37 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.