TableManager CopyTableBySchema Method Kentico 8.0 API Reference
Copies given table as a new one from given table cheme (ensures unique table name for the new table).

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

newTableName
Type: OnlineSystem String
Name of the table which will be created (has to be unique), leave null or empty to default unique name from original name
originalTableName
Type: OnlineSystem String
Name of the table you want to copy
originalTableScheme
Type: OnlineSystem String
Scheme based on the form definition of the original table
withData
Type: OnlineSystem Boolean
If true, data are copied from source to target table as well

Return Value

Type: OnlineString
Table name of the newly created table.
See Also