How to copy Database with out changing the NoteID

Hi All,

I copied a database, but when i do that the new database NoteID are different from the copied ones. I want both database to have same NoteID’s. Can anyone help me.

Thanks in Advance,

Agasthya

Subject: How to copy Database with out changing the NoteID

Use the file system to copy the NSF file. If you need a diffrerent replica ID, there are various tools for changing it – for example, the code here.

Subject: RE: How to copy Database with out changing the NoteID

Hi,

I have a mail database sitting on the server, I open it through C API then I want to copy the same to the local system and perform some search queries. I am using C API for copying the Database by passing the Handle. Actually i am using COPYDB sample as reference. But, the document NOTEID’s are getting changed after the new Database is created.

Can you suggest me is there a way using C API.

Thanks in advance,

Agasthya

Subject: RE: How to copy Database with out changing the NoteID

The API does not allow you to control note IDs. It is better if you use universal IDs. These do not change when you copy the database.

Subject: RE: How to copy Database with out changing the NoteID

Hi,

I searched the C API, but not successful to get the UNID form NOTEID. Can you suggest me how to get this.

Thanks in advance,

Agasthya

Subject: RE: How to copy Database with out changing the NoteID

NSFNoteGetInfo does that.By the way, in the C API User Guide there is an appendix with useful information about note IDs.

Subject: RE: How to copy Database with out changing the NoteID

Hi,

Thanks a lot.

Agasthya