Class IfTableOrViewExistsTask
Checks if a table exists.
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
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 |