Class IfIndexExistsTask
Checks if an index 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 IfIndexExistsTask : IfExistsTask, ILoggableTask
Constructors
IfIndexExistsTask()
Declaration
public IfIndexExistsTask()
IfIndexExistsTask(string, string)
Declaration
public IfIndexExistsTask(string indexName, string tableName)
Parameters
Type | Name | Description |
---|---|---|
string | indexName | |
string | tableName |
Methods
IsExisting(IConnectionManager, string, string)
Ćhecks if the index exists
Declaration
public static bool IsExisting(IConnectionManager connectionManager, string indexName, string tableName)
Parameters
Type | Name | Description |
---|---|---|
IConnectionManager | connectionManager | The connection manager of the database you want to connect |
string | indexName | The index name that you want to check for existence |
string | tableName | The table name on which the index is based on |
Returns
Type | Description |
---|---|
bool | True if the index exists |
IsExisting(string, string)
Ćhecks if the index exists
Declaration
public static bool IsExisting(string indexName, string tableName)
Parameters
Type | Name | Description |
---|---|---|
string | indexName | The index name that you want to check for existence |
string | tableName | The table name on which the index is based on |
Returns
Type | Description |
---|---|
bool | True if the index exists |