SqlDataDictionary.indexDrop Method
Drops the indexes of an Microsoft Dynamics AX table in the SQL database.
Syntax
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.
Remarks
Use 0 for the parameters to indicate all tables or indexes.
Examples
{
SqlDataDictionary DD = new SqlDataDictionary();
DD.indexDrop(TableName2Id("Address"));
}