Class IfTableOrViewExistsTask
Checks if a table exists.
Implements
Inherited Members
Namespace: ETLBox.ControlFlow
Assembly: ETLBox.dll
Syntax
public sealed class IfTableOrViewExistsTask : IfExistsTask, ILoggableTaskConstructors
IfTableOrViewExistsTask()
Declaration
public IfTableOrViewExistsTask()IfTableOrViewExistsTask(IConnectionManager, string)
Declaration
public IfTableOrViewExistsTask(IConnectionManager connectionManager, string tableName)Parameters
| Type | Name | Description |
|---|---|---|
| IConnectionManager | connectionManager | |
| string | tableName |
IfTableOrViewExistsTask(string)
Declaration
public IfTableOrViewExistsTask(string tableName)Parameters
| Type | Name | Description |
|---|---|---|
| string | tableName |
Methods
IsExisting(IConnectionManager, string)
Ćhecks if the table or view exists
Declaration
public static bool IsExisting(IConnectionManager connectionManager, string objectName)Parameters
| Type | Name | Description |
|---|---|---|
| IConnectionManager | connectionManager | The connection manager of the database you want to connect |
| string | objectName | The table or view name that you want to check for existence |
Returns
| Type | Description |
|---|---|
| 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
| Type | Name | Description |
|---|---|---|
| string | objectName | The table or view name that you want to check for existence |
Returns
| Type | Description |
|---|---|
| bool | True if the table or view exists |