Add Column

Adds a new column to the table.


⬅️INPUT

Parameter

Type

Required

Description

ConnectionSettings

PAWMsSqlConnectionSettings

✅Yes

Connection information

TableName

String

✅Yes

Name of the table the column is added to

ColumnName

String

✅Yes

New column name

Type

String

✅Yes

Data type (e.g. VARCHAR(255), INT)


➡️OUTPUT

Parameter

Type

Description

IsAddColumnSuccessful

Boolean

Returns "True" if the operation succeeds, "False" if it fails.

AddColumnMessage

String

Returns the error information received if the operation fails.


⬇️MISC

Parameter

Type

Default

Description

ThrowException

Boolean

❌No

Specifies whether an exception is thrown when the operation fails. The default value is "No".