DropTableTask

Class DropTableTask

Drops a table. Use DropIfExists to drop a table only if it exists.

Implements
Namespace: ETLBox.ControlFlow
Assembly: ETLBox.dll
Syntax
    public sealed class DropTableTask : DropTask<IfTableOrViewExistsTask>, ILoggableTask

Constructors

DropTableTask()

Declaration
    public DropTableTask()

DropTableTask(string)

Declaration
    public DropTableTask(string tableName)
Parameters
TypeNameDescription
stringtableName

Methods

Drop(IConnectionManager, string)

Drops a table.

Declaration
    public static void Drop(IConnectionManager connectionManager, string tableName)
Parameters
TypeNameDescription
IConnectionManagerconnectionManager

The connection manager of the database you want to connect

stringtableName

Name of the table to drop

Drop(string)

Drops a table.

Declaration
    public static void Drop(string tableName)
Parameters
TypeNameDescription
stringtableName

Name of the table to drop

DropIfExists(IConnectionManager, string)

Drops a table if the table exists.

Declaration
    public static void DropIfExists(IConnectionManager connectionManager, string tableName)
Parameters
TypeNameDescription
IConnectionManagerconnectionManager

The connection manager of the database you want to connect

stringtableName

Name of the table to drop

DropIfExists(string)

Drops a table if the table exists.

Declaration
    public static void DropIfExists(string tableName)
Parameters
TypeNameDescription
stringtableName

Name of the table to drop

Implements