Function : Database

NSFDbCopy - Copies notes from one database to another.
----------------------------------------------------------------------------------------------------------

#include <nsfdb.h>

STATUS LNPUBLIC NSFDbCopy(
DBHANDLE hSrcDB,
DBHANDLE hDstDB,
TIMEDATE Since,
WORD NoteClassMask);

Description :

This function copies notes from one database to another. You may specify two conditions that will filter which notes are copied: a cutoff time/date, and a NOTE_CLASS_xxx mask.
Parameters :

Sample Usage :


      /* if New DB from a template */
      if (error_status = NSFDbCopy(db_handle_src, db_handle_dst,
                             copy_cutoff_td, NOTE_CLASS_ALLNONDATA))
          goto Exit;
      if (error_status = NSFDbCopyTemplateACL(db_handle_src,
                             db_handle_dst, user_name,
                             ACL_LEVEL_MANAGER))
          goto Exit;
  }


See Also :

NSFDbCopyACL
----------------------------------------------------------------------------------------------------------