Codeunit 9557 Table Key

System Application, System.Reflection

Source AL, 44 lines

src/System Application/App/Table Keys/src/TableKey.Codeunit.allines 11 to 26 of 44, Copyright (c) Microsoft Corporation. MIT

codeunit 9557 "Table Key"{    /// <summary>    /// Disables all keys on the provided table. Disabling keys before bulk table write operations can significantly improve performance.    /// </summary>    /// <param name="TableNo">The table to disable all of the keys for.</param>    /// <returns>True, if the keys were disabled successfully, false otherwise.</returns>    /// <remarks>    /// System tables and non-sql based tables are not supported for this operation.    /// Clustered keys, unique keys, SIFT keys, Nonclustered Columnstore Indexes are not affected by this operation.    /// The keys are automatically re-enabled when a Commit() is called, or at the end of AL code execution.    /// </remarks>    [Scope('OnPrem')]    procedure DisableAll(TableNo: Integer): Boolean    var        TableKeyImpl: Codeunit "Table Key Impl.";

All 44 lines

Public procedures 2 in 29

DisableAll(TableNo: Integer): Booleannew in 24
EnableAll(TableNo: Integer): Booleannew in 24