Try OpenEdge Now
skip to main content
Programming Interfaces
Database Administration Entity Interface Reference : IPartitionPolicy interface : IPartitionPolicy examples : Renaming a partition policy
 
Renaming a partition policy
The following code shows how to rename an existing policy:
define variable policy as IPartitionPolicy no-undo.
assign
    policy = service:GetPartitionPolicy("OrderlineDatePolicy")
policy:Name = "OrderLineDate".
service:UpdatePartitionPolicy(policy).
See also:
*IDataAdminElement interface
*IPartitionMap interface
*IPartitionPolicy interface
*IPartitionPolicyDetail interface
*ITenantGroupSet interface
*ITenantGroup interface
*IPartitionMap interface