SqlDataDictionary.indexCreate Method

Creates the indexes of an Microsoft Dynamics AX table in the SQL database. You can also use this method to re-create indexes.

Syntax

public int indexCreate([TableId tableId, IndexId indexId])

Run On

Server

Parameters

Return Value

Type: int
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.

Examples

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

See Also

Reference

SqlDataDictionary Class