Sql-server – DBCC PAGE read page from buffer pool or directly from the file system

dbccsql serverstorage-engine

We know that SQL Server always read pages from disk to memory for all its operations. So it's possible that a page in memory is different from it's counterpart in disk. I want to know the command DBCC PAGE is reading a page in memory or on disk. Thanks.

Best Answer

We know that SQL Server always read pages from disk to memory for all its operations.

The pages are asked for from memory like most things in SQL Server. The same process applies for DBCC PAGE as it does for other read operations in SQL Server.