Calling convention: CIP_SetObjectConnection("TargetObjectName":String,"ConnectionNameToSet":String,WithChildren:Boolean,ChangePermanent:Boolean,ChangeIfNull:Boolean)
Description: Changes the database connection of the named object. Initialized objects are reinitialized; the change can be applied recursively to child objects and, when requested, stored as the object's permanent connection setting.
Parameters:
TargetObjectName: root object whose connection is changed.
ConnectionNameToSet: name of the database connection to use.
WithChildren: when True, applies the change recursively to child objects.
ChangePermanent: when True, stores the connection as the permanent object setting.
ChangeIfNull: when True, also changes objects that do not have a custom connection name.
Returns: No defined return value.
Availability: Default.
Example:
CIP_SetObjectConnection("DynamicDBSource", "SQLServerDellMicro", True, False, False);