Function : Database

NSFDbCopyNote - Copy a single note from one database to another.
----------------------------------------------------------------------------------------------------------

#include <nsfdb.h>

STATUS LNPUBLIC NSFDbCopyNote(
DBHANDLE hSrcDB,
DBID far *SrcDbID,
DBID far *SrcReplicaID,
NOTEID SrcNoteID,
DBHANDLE hDstDB,
DBID far *DstDbID,
DBID far *DstReplicaID,
NOTEID far *retDstNoteID,
WORD far *retNoteClass
);

Description :

This function copies a single note from a source database to the destination database. This routine detects if the source and destination databases are replicas of each other, and sets ID information in reference items in notes appropriately. If the two databases are replicas of each other, the internal identifier (OID) is preserved during the copy, so the two notes appear as replicas of each other. This function can also be used to copy notes between non-replica databases or between totally unrelated databases. The copy operation does NOT flush the I/O buffers in the destination database to disk until the destination database is closed, in order to improve the speed of a repeated number of calls to this function.

Parameters :

Sample Usage :


See Also :

NSFDbCopy
----------------------------------------------------------------------------------------------------------