Read a technical book with a practical question, small SQL experiments, and reusable notes that turn each useful chapter into working knowledge.
Why a Second Log File Does Not Make Anything Faster
Adding a second log file feels like a speed fix, but it is only a spare room. Here is how to watch it work and how to retire it.
Why a Clustered Index Does Not Guarantee Order Without ORDER BY
Explain order without ORDER BY through parallel scans, NOLOCK allocation scans, alternate indexes, shared scans, and the explicit sort fix.
Shortest Distance Between Two Shapes in SQL Server: Ramsetu or Adam’s Bridge
The shortest distance between two shapes in SQL Server comes from ShortestLineTo and STDistance. The tests here show the numbers behind the three original pictures, what happens when shapes overlap or use different SRIDs, and the same method on the globe near Ramsetu.
MultiSubnetFailover: Why Clients Time Out After an AG Failover
Diagnose an AG failover timeout with listener DNS, MultiSubnetFailover, RegisterAllProvidersIP, HostRecordTTL, and client-driver checks.
Replacing a Running Total Cursor With a Window Function
That loop adding to a variable can usually become one window function. Here is the proof that the balances match, and the tie trap to watch for.
Reading a Backup File Before You Restore With RESTORE HEADERONLY
Use RESTORE HEADERONLY to identify backup sets, source versions and finish dates before selecting a restore and checking the media.







