Truncate table using x++
Below job is to truncate VendGroup table using x++. SqlDataDictionary sqlDataDictionary; ; sqlDataDictionary = new SqlDataDictionary(); new SqlDataDictionaryPermission(methodstr(SqlDataDictionary, tableTruncate)).assert(); sqlDataDictionary.tableTruncate(tablenum(VendGroup),false);