Login
А как сейчас с работой?
113520 просмотров
Перейти к просмотру всей ветки
in Antwort Срыв покровов 12.02.23 23:51, Zuletzt geändert 13.02.23 00:47 (alex445)
Там написано, что это за функция и чем отличается от удаления данных из таблицы. Ну и немного в стороне написано, как дропаются большие таблицы
Large tables and indexes that use more than 128 extents are dropped in two separate phases: logical and physical. In the logical phase, the existing allocation units used by the table are marked for deallocation and locked until the transaction commits. In the physical phase, the IAM pages marked for deallocation are physically dropped in batches.
Правда, в статье про транкейт написано немного другое. Вобщем, что-то непонятно.
Microsoft SQL Server has the ability to drop or truncate tables that have more than 128 extents without holding simultaneous locks on all the extents required for the drop.