How to combine two database into one

Dear all,

I have two database. one in Workshop.nsf and other is registration.nsf. I want to combine these two database in to one. Any Help…

Its Urgent…

Thanks

Subject: The design, or the documents?

You can use the CopyToDatabase method of the NotesDocument class.

Set newNotesDocument = notesDocument.CopyToDatabase( notesDatabase )

You may even be able to jsut copy/paste depending on your needs.

Subject: how to combine two database into one

Or, in theory, you could create an all documents view from the database you want to copy OUT OF with a selection formula of @all and select all the documents, then copy and paste them manually.

Hmm… the question that obviously arises if you use either method is, what are you going to see after you do this? Do the databases use the same forms with the same fields? If not, you will need to copy the forms being used in the source database to the target database. You will then need to copy any views or modify the views in the target database so that documents using these forms show up. Agents may need to be modified if they exist. Make sure you realize all of the implications of doing this before you do just copy your documents over and delete the old database.