SqlDataDictionary.indexDrop Method [AX 2012]

Drops the indexes of an Microsoft Dynamics AX table in the SQL database.

public int indexDrop(
   [TableId tableId, 
    IndexId indexId, 
    boolean onlyNonUnique])

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.
onlyNonUnique
Type: boolean

Return Value

Type: int
Zero if the method succeeds.

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

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

Community Additions

ADD
Show: