Try OpenEdge Now
skip to main content
Programming Interfaces
Database Administration Entity Interface Reference : ITable interface : ITable examples : Allocating table partitions
 
Allocating table partitions
The ITable interface has an Allocate( ) method that allocates partitions for all delayed table, index, and LOB field partitions for the specified table. (The method is also overloaded with a parameter that can specify whether to allocate partitions in the "All", "Delayed", or "None" state):
assign
  service = new DataAdminService("sportsmt")
  tableImpl = service:GetTable("Customer")
  tableImpl:Allocate( ).

service:UpdateTable(tableImpl).
Note: The Allocate( ) method does not allocate partitions that belong to a tenant group defined for the table. The ITenantGroup interface has its own Allocate( ) method.