So if my portal id is 0 then I would run as Script under HOST/SQL:
DISABLE TRIGGER {databaseOwner}{objectQualifier}DMX_EntryUpdatePath ON {databaseOwner}{objectQualifier}DMX_Entries;
UPDATE {objectQualifier}DMX_Entries
SET Path = NULL
WHERE NOT Path LIKE '0;%';
ENABLE TRIGGER {databaseOwner}{objectQualifier}DMX_EntryUpdatePath ON {databaseOwner}{objectQualifier}DMX_Entries;
GO
EXEC {databaseOwner}{objectQualifier}DMX_UpdatePaths @PortalId = 0
GO
???