> |  
re : Merge di 2 db
cyberflaz
Crea un agente su uno dei due db per copiare tutti i dati verso l\'altro (otherDb) database:

Dim s As New NotesSession
Dim thisDb as NotesDatabase
Dim otherDb as NotesDatabase
Dim dc As NotesDocumentCollection
Dim thisDoc as NotesDocument
Dim otherDoc as NotesDocument

Set thisDb = s.currentdatabase
Set otherDb = s.getDatabase(thisDb.Server, "Path\AltroDb.nsf", False)

If otherDb Is Nothing Then
MsgBox "Ooops!"
Exit Sub
End If

Set dc = thisDb.AllDocuments

Set thisDoc = dc.GetFirstDocument
Do until thisDoc is nothing
Set otherDoc = otherDb.createDocument()
Call thisDoc.CopyAllItems(otherDoc)
Call otherDoc.save(True, False)
Set thisDoc = dc.GetNextDocument(thisDoc)
Loop

Massimo Nadalin | Devangarde


Merge di 2 db - muadib -
    You are here re : Merge di 2 db - cyberflaz -
    re : Merge di 2 db - muadib -
        re... : Merge di 2 db - mere -
            re... : Merge di 2 db - oolong -
            re... : Merge di 2 db - Zeus -
    re : Merge di 2 db - Zeus -