Showing articles from SQL Server tag

SQL Tips
Various SQL-oriented tips discovered during work, written down to remember them.

Efficient Compound Index Usage
How the column order of a compound index decides between an index seek and a full scan, tested on a 6.5 million row table in SQL Server.

Search File Contents
Windows Search can look inside files, but by default not inside .sql or .php files. One registry key per extension fixes that.

Extracting Stored Procedure Content via SQL
Three SQL Server queries to list databases, list user stored procedures and read a procedure's source from syscomments.