fn_get_sql() and DBCC INPUTBUFFER will be deprecated. Use sys.dm_exec_query_stats and sys.dm_exec_sql_text to see each recently executed T-SQL query.
SQL SERVER – Enable Automatic Statistic Update on Database
Automatic statistics updates respond to changing data and query needs. I inspect the setting and estimates before treating it as a tuning fix.
VALUES Type Inference: Cast Before Combining Rows
VALUES type inference chooses a common column type. Preserve formatting-sensitive text by making source conversions explicit before combination.
SQL SERVER – Comic Slow Query – SQL Joke
After Community TechDays in Ahmedabad, many asked for the Comic Slow Query strips I showed in my index session. Here are both, one from before and one after.
SQL SERVER – Query Optimization – Remove Bookmark Lookup – Remove RID Lookup – Remove Key Lookup – Part 3
Part 3 of how to Remove Bookmark Lookup, RID Lookup and Key Lookup. A covering index holds every column the query uses in SELECT, JOIN and WHERE.
Connecting PHP to SQL Server
Connecting PHP to SQL Server means choosing SQLSRV or PDO_SQLSRV, binding parameters, validating TLS, and keeping web queries efficient.
The Implicit Conversion That Quietly Kills Your Index
Find an implicit conversion in your SQL Server plan, understand which value changes type, and match application parameters to indexed columns.







