SqlDataDictionary.indexCreate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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.