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:
*IDataAdminElementinterface
*IPartitionMapinterface
*IPartitionPolicyinterface
*IPartitionPolicyDetailinterface
*ITenantGroupSetinterface
*ITenantGroupinterface
*IPartitionMapinterface