Common Misconceptions In Sql Server
Common Misconceptions In Sql Server

Common Misconceptions In Sql Server

A TRUNCATE TABLE operation is non-logged.(FALSE)

There is no such thing as a non-logged operation in a user database. The only non-logged operations that SQL Server performs are those on the version store in tempdb.

A TRUNCATE TABLE operation does a wholesale delete of all data in the table. The individual records are not deleted one-by-one, instead the data pages comprising the table are simply deallocated. The allocations are unhooked from the table and put onto a queue to be deallocated by a background task called the deferred-drop task. The deferred-drop task does the deallocations instead of them being done as part of the regular transaction so that no locks need to be acquired while deallocating entire extents.

Paul S. Randal

要查看或添加评论,请登录

Mohsen Sayadian的更多文章

  • There are clouds on the horizon

    There are clouds on the horizon

    I've often observed DBAs who confidently set the maximum memory size, yet few truly understand the implications of…

  • That's my story about Memory Grants in SQL Server

    That's my story about Memory Grants in SQL Server

    As a consultant, I usually try to figure out some performance metrics, workload types, bottlenecks, etc. The story…

    5 条评论
  • learning path to understand storage metrics in SQL Server

    learning path to understand storage metrics in SQL Server

    In this article, I aim to demystify some concepts of storage related to SQL Server through self-learning. It's not…

    5 条评论
  • Is table partitioning going to improve query performance by itself?

    Is table partitioning going to improve query performance by itself?

    When we talk about too many records a lot of developers think just using table partitioning every things become faster,…

    1 条评论
  • Hack-attach

    Hack-attach

    I want to describe how to re-attach a damaged database if someone’s detached it accidentally while performing disaster…

  • Get on Good Terms with Your Developers

    Get on Good Terms with Your Developers

    I had search on internet about databases (I like to do that , even aimless!) I read article from Paul S. Randal (a…

  • Important Answers before start to Rebuild Index

    Important Answers before start to Rebuild Index

    Firstly , this article talk about SQL Server indexes, and short answer to some important questions of DBAs before start…

  • Database Scalability – Horizontal vs. Vertical Scaling

    Database Scalability – Horizontal vs. Vertical Scaling

    Scalability at the database layer has always been a challenging task for architects. Sadly, this also happens to be one…

  • SQL Server I/O Errors

    SQL Server I/O Errors

    We have three kind of I/O errors (summary) Error Number 823 : a hard I/O error SQL Server ask OS to reads data from…

  • strategy of database design (OLTP or OLAP)

    strategy of database design (OLTP or OLAP)

    One of the biggest problems in design medium level of applications (in very small team) , choice strategy of database…

    2 条评论

社区洞察

其他会员也浏览了