Click or drag to resize
TableManagerAlterTableColumn Method
Rename, retype or allow/not allow NULL values in column

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 10.0.0
Syntax
C#
public void AlterTableColumn(
	string tableName,
	string columnName,
	string newColumnName,
	string newColumnType,
	bool newColumnAllowNull,
	string newColumnDefaultValue
)

Parameters

tableName
Type: SystemString
Table name
columnName
Type: SystemString
Name of an old column
newColumnName
Type: SystemString
Name of a new column
newColumnType
Type: SystemString
Type of a new column
newColumnAllowNull
Type: SystemBoolean
Allow NULL values in new column or not
newColumnDefaultValue
Type: SystemString
Default value of a new column in system (en) culture
See Also