IfTableOrViewExistsTask

Class IfTableOrViewExistsTask

Checks if a table exists.

Inheritance
IfTableOrViewExistsTask
Implements
Namespace: ETLBox.ControlFlow
Assembly: ETLBox.dll
Syntax
    public sealed class IfTableOrViewExistsTask : IfExistsTask, ILoggableTask

Constructors

IfTableOrViewExistsTask()

Declaration
    public IfTableOrViewExistsTask()

IfTableOrViewExistsTask(IConnectionManager, string)

Declaration
    public IfTableOrViewExistsTask(IConnectionManager connectionManager, string tableName)
Parameters
TypeNameDescription
IConnectionManagerconnectionManager
stringtableName

IfTableOrViewExistsTask(string)

Declaration
    public IfTableOrViewExistsTask(string tableName)
Parameters
TypeNameDescription
stringtableName

Methods

IsExisting(IConnectionManager, string)

Ćhecks if the table or view exists

Declaration
    public static bool IsExisting(IConnectionManager connectionManager, string objectName)
Parameters
TypeNameDescription
IConnectionManagerconnectionManager

The connection manager of the database you want to connect

stringobjectName

The table or view name that you want to check for existence

Returns
TypeDescription
bool

True if the table or view exists

IsExisting(string)

Ćhecks if the table or view exists

Declaration
    public static bool IsExisting(string objectName)
Parameters
TypeNameDescription
stringobjectName

The table or view name that you want to check for existence

Returns
TypeDescription
bool

True if the table or view exists

Implements