SqlDataDictionary.indexCreate Method [AX 2012]

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

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.

This method can be used to re-create indexes.

Use 0 for the parameters to indicate all tables or indexes.

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

Community Additions

ADD
Show: