SqlDataDictionary.tableTruncate Method [AX 2012]

Truncates the Microsoft Dynamics AX table.

public int tableTruncate(
    TableId tableId, 
   [boolean prompt_before_truncate, 
    boolean truncate_system_table])

Run On

Server

Parameters

tableId
Type: TableId Extended Data Type
The handle of the table to be truncated.
prompt_before_truncate
Type: boolean
A boolean flag that determines whether to ask user before truncating the table; optional. By default, true.
truncate_system_table
Type: boolean
A boolean flag that determines whether to truncate table in case if selected table is system; optional. By default, false.

Return Value

Type: int
Zero if the method succeeds.

Community Additions

ADD
Show: