Interview Questions

1. How is the dirty page written to disk?

Dirty pages are written to disk on the following events.

• Lazy writing is a process to move pages containing changes from the buffer onto disk. This clears the buffers for us by other pages.

• Checkpoint writes all dirty pages to disk. SQL Server periodically commits a CHECKPOINT to ensure all dirty pages are flushed to disk.

• Explicitly issuing a CHECKPOINT will force a checkpoint

 Examples of events causing a CHECKPOINT

1. net stop mssqlserver

2. SHUTDOWN

3. ALTER DATABASE adding a file

• Eager writing – Nonlogged bcp, SELECT INTO, WRITETEXT,UPDATETEXT,BULK INSERT are examples of non-logged operations. To speed up the tasks , eager writing manages page creation and page writing in parallel. The requestor does not need to wait for all the page creation to occur prior to writing pages

By Hena Parveen 2 0
Is this helpful? Yes No

Submit an interview question

Submitted questions and answers are subject to review and editing, and may or may not be selected for posting, at the sole discretion of w3Sniff.

Get Started

Comments

Leave a Comment


Check out more interview questions

Based on your skills

MS SQL Server

1663046 1720 23 859

Angular

42509 92 0 46

Wordpress

34330 72 1 36