developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks




CreateDatabaseCopy
Douglas B Ward 09/08/2009 07:26 PM
Toolkits All Releases Windows 2003


I am trying to copy a NotesDatabase (nsf file) using CreateDatabaseCopy() or CreateDatabaseReplica()
I am using an administrator.id file that should have full rights, but I get the error 760: This database has local access protection and you are not authorized to access it locally. My code looke like

LNCreateDatabaseOptions options;
options.SetOverwriteExistingFile(true);
options.SetPreserveNoteModifiedTime(true);
options.SetLocalEncryption(LNLOCALENCRYPTION_NONE);
options.SetCopyACL(true);
LNDatabase newdb;
lnstatus = session.CreateDatabaseReplica(db, outputPath,"",options);

What do I need to do to open/copy this database? Can anybody help me please?

Go back