define variable definitions as ISchema no-undo.
define variable area as IArea no-undo. define variable iterator as IIterator no-undo. definitions = service:GetSchemaChanges("myschema.df"). definitions:LoadOptions:ForceIndexDeactivation = true. service:UpdateSchemaChanges(definitions). iterator = definitions:Partitions:Iterator("ObjectType = 'table'"). do while iterator:HasNext(): cast(iterator:Next(),IPartition):Allocate(). end. service:UpdateSchema(definitions). |