Click or drag to resize
TableManagerCopyTableBySchema Method
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.2.23
Syntax
C#
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: String
Table name of the newly created table.
See Also