TableManagerCopyTableBySchema Method |
Copies given table as a new one from given table cheme (ensures unique table name for the new table).
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax public string CopyTableBySchema(
string newTableName,
string originalTableName,
string originalTableScheme,
bool withData
)
Parameters
- newTableName
- Type: SystemString
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: SystemString
Name of the table you want to copy - originalTableScheme
- Type: SystemString
Scheme based on the form definition of the original table - withData
- Type: SystemBoolean
If true, data are copied from source to target table as well
Return Value
Type:
StringTable name of the newly created table.
See Also