Delete Table

Deletes or empties an MsSQL table.


⬅️INPUT

Parameter

Type

Required

Description

ConnectionSettings

PAWMsSqlConnectionSettings

✅Yes

Connection information

TableName

String

✅Yes

Table name

Drop

Boolean

❌No

true: deletes the table completely (DROP), false: only empties it (TRUNCATE)


➡️OUTPUT

Parameter

Type

Description

IsDeleteTableSuccessful

Boolean

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

DeleteTableMessage

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".