Jaa


SqlDataDictionary.indexCreate Method

Definition

Overloads

indexCreate()

Creates the indexes of a table in the SQL database. You can also use this method to re-create indexes.

indexCreate(Int32)
indexCreate(Int32, Int32)

indexCreate()

Creates the indexes of a table in the SQL database. You can also use this method to re-create indexes.

public:
 virtual int indexCreate();
public virtual int indexCreate ();
abstract member indexCreate : unit -> int
override this.indexCreate : unit -> int
Public Overridable Function indexCreate () As Integer

Returns

0 if the method succeeds.

Remarks

This method can be used to re-create indexes. Use 0 for the parameters to indicate all tables or indexes.

The following example demonstrates the indexCreate method.

{ 
    SqlDataDictionary DD = new SqlDataDictionary(); 
    DD.indexCreate(TableName2Id("Address")); 
}

Applies to

indexCreate(Int32)

public:
 virtual int indexCreate(int num1);
public virtual int indexCreate (int num1);
abstract member indexCreate : int -> int
override this.indexCreate : int -> int
Public Overridable Function indexCreate (num1 As Integer) As Integer

Parameters

num1
Int32

Returns

Applies to

indexCreate(Int32, Int32)

public:
 virtual int indexCreate(int _tableId, int _indexId);
public virtual int indexCreate (int _tableId, int _indexId);
abstract member indexCreate : int * int -> int
override this.indexCreate : int * int -> int
Public Overridable Function indexCreate (_tableId As Integer, _indexId As Integer) As Integer

Parameters

_tableId
Int32

The index handle (0 for all); optional.

_indexId
Int32

The index handle (0 for all); optional.

Returns

Applies to