Trancate table and LOB data

sakuraime 2,326 Reputation points
2020-08-28T02:54:57.383+00:00

where there are still LOB allocation unit after the table is truncated ?
21055-truncate.jpg

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,670 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. tibor_karaszi@hotmail.com 4,311 Reputation points
    2020-08-28T06:42:23.613+00:00

    The deallocation of storage is a deferred operation. It runs after you commit, in batches. See this: https://video2.skills-academy.com/en-us/previous-versions/sql/sql-server-2008-r2/ms177495(v=sql.105)?redirectedfrom=MSDN

    0 comments No comments

  2. m 4,271 Reputation points
    2020-08-28T07:39:21.687+00:00

    Hi @sakuraime ,

    why there are still LOB allocation unit after the table is truncated ?

    No truncate on my side.
    Could you please execute refresh after your execute the first query and then execute the second query?
    And what is your script of your table “TableMetaData”?

    21191-20200828truncate.jpg

    BR,
    Mia
    If the reply is helped, please do “Accept Answer”.--Mia


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.