SQL: Skript für Übertragung der DocuWare Indexdaten in das topfactArchiv (späte Migration)

topfact AG intern>Organisation>Richtlinien - verbindliche Anweisungen>Urlaub - Organisationsrichtlinie>technische Dokumentation Überblick>Standard Tools und Skripts>SQL: Skript für Übertragung der DocuWare Indexdaten in das topfactArchiv (späte Migration)
Produkt: topfact6 MyWork
Erstellt am 31.05.2023 10:54, letzte Aktualisierung am 05.06.2026 11:02.
ÜbertragungSpäteMigrationIndexdaten

USE topfactArchiv

 

GO

 

TRUNCATE TABLE tf_ArchiveTabelle

TRUNCATE TABLE tf_ArchiveTabelleFiles

 

-- Archive documents

INSERT INTO topfactArchiv.dbo.tf_ArchiveTabelle

 

(tf_docguid, tf_datecreated, tf_usercreated, tf_datemodified, tf_usermodified, tf_datelastaccess, tf_userlastaccess, tf_filecount, tf_filesize,

 

-- hier benutzerdefinierte topfact Archiv Felder

[KU__LIEF_NR_]

,[KU__LIEF_NAME]

 

-- weitere Felder hinzufügen

 

,[Betrag]

-- ....

 

-- Diese Felder Sind Pflichtfelder !!

 

dwdocid, dwtransfer

 

)

 

SELECT

 

NEWID(), DWSTOREDATETIME, DWSTOREUSER, DWMODDATETIME, DWMODUSER, DWLASTACCESSDATETIME, DWLASTACCESSUSER, 0, DWDOCSIZE,

 

-- hier Original DocuWare Felder

 [KU__LIEF_NR_]

,[KU__LIEF_NAME]

,CONVERT(DECIMAL(18,2),BETRAG)/100 AS BETRAG

,dwdocid

,

CASE

 

-- 0, 1 Original

-- 2 PDF ohne Anno

-- 3 PDF mit Anno

-- 4 zip dont unzip this file

 

WHEN DWEXTENSION IS NULL THEN 3

WHEN DWEXTENSION ='.'THEN 3

WHEN DWEXTENSION ='.msg'THEN 1

WHEN DWEXTENSION ='.pdf'THEN 3

WHEN DWEXTENSION ='.dwtiff'THEN 3

WHEN DWEXTENSION ='.zip'THEN 4

 

ELSE 1

 

END AS DWTRANSFER

 

FROM dwdata.dbo.Archivtabelle

Ähnliche Seiten zum Produkt
MyWork QuickIndex vom 11.07.2026
Detailbereich anzeigen vom 11.07.2026
Reiter Diagnose vom 11.07.2026
Kontierungsmaske vom 11.07.2026
Übergabe an FibuConnect vom 11.07.2026
Im Quickindex öffnen vom 11.07.2026
Verlinkte Dokumente vom 11.07.2026
Inhaltsverzeichnis