Problem in Opening offline edb file
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook Forum
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Problem in Opening offline edb file
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
spian



Joined: 02 Mar 2010
Posts: 1

Posted: Tue Mar 02, 2010 10:02 am    Post subject: Problem in Opening offline edb file Reply with quote

Hi,

I am using Exchange Server 2003 SP2, I am trying to write an application to read the offline exchange .edb and .stm files. For the same i am using Jet Blue

API's.

My sequence of API Call's is

JetSetSystemParameter(NULL, JET_sesidNil,JET_paramDatabasePageSize, 4096, NULL);
JetCreateInstance(&instance, "instance");
JetInit(&instance);
JetBeginSession(instance, &sesid, 0, 0);
JetAttachDatabase(sesid,"C:\\Temp\\SP-MS-1.edb",JET_bitDbReadOnly);

All my above calls are executed successfully, except the last function call i.e. JetAttachDatabase(sesid,"C:\\Temp\\SP-MS-1.edb",JET_bitDbReadOnly);

I have found out that when i make the database offline by unmounting the mail boxes, and copy it to the temp folder, in this case, "JetAttachDatabase"

returns -544 as an error code, which states that "Soft recovery is intended on a backup database. Restore should be used instead".

So further i use the eseutil.exe with the option as eseutil /r /l /d options on the original location of the database file, the util runs successfully, then

i copy this repaired edb file to temp location and then use it my application, now also all the above calls executes successfully, except the last function

call "JetAttachDatabase" fails with the error code as -1, which states that "Function Not Yet Implemented".

What am i doing wrong? Anybody with some suggestions would be appreciated.

Thanking all in advance

Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Access Forum - Dedicated Servers

Contact Us Powered by phpBB