Earlier I wrote about SQL SERVER – MAX Columns ID Used in Table and lots of people asked me to create a video on this topic. Let us see the video.
Free Space in Database Files: Check Data and Log Files
To see the free space in database files, compare each file’s size with the pages it uses. This post gives one query for data and log files, adds the free space on the drive, and checks the log figure against a second source.
SQL SERVER – Rename View
When I rename view objects, I inspect references and retained definitions first. SSMS and sp_rename both need dependency planning.
SQL SERVER – High Frequency Cached Query Counts and Statement Metrics
I measure High Frequency cached statements with decimal executions-per-second arithmetic. A customer wanted to identify the busiest queries.
SQL SERVER – Using NOEXPAND with Indexed View
NOEXPAND treats an indexed view as stored indexed data instead of expanding its base tables. Customer results have differed.
SQL SERVER – Parameter Sniffing and Bad Plan
Disabling parameter sniffing does not guarantee that a bad plan becomes good. That remains my answer to the customer question.
SQL SERVER – Dirty Pages Clean Pages and the Correct Cache Commands
Clean Pages have no outstanding data-file write, while dirty pages contain unwritten changes. A customer asked which state was better.







