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
- tableId
Type: TableId Extended Data Type
The table handle (0 for all); optional.
- indexId
Type: IndexId Extended Data Type
The index handle (0 for all); optional.
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"));
}