Harsh improved the identity query from Part 1 so it also works when seed values or increment values are not 1. Here is his script.
SQL SERVER – Detecting Corruption with Suspect Pages Table – Notes from the Field #043
John Sterrett shows how the suspect pages table helps with detecting corruption, a tip worth learning even if your database has never been corrupted.
SQL SERVER – Query to Find Seed Values, Increment Values and Current Identity Column Value of the Table with Max Value of Datatype
Mark Hickin improved my old query, so it now shows seed, increment and current identity column value along with the max value of the datatype.
SQL SERVER – How to See Active SQL Server Connections For Database
A reader asked which users are connected to a database and with how many connections. This short script lists active SQL Server connections by login.
JSON or Real Columns: Deciding Where Attributes Live
Putting everything in a JSON column is tempting. Here is what it costs in reads, type checks and null handling, and when to promote a property.
SQL SERVER – How to Force New Cardinality Estimation or Old Cardinality Estimation
Readers asked if the new estimator helps every query. I answer that and show how to force new or old cardinality estimation in SQL Server 2014.





