Formatting T-SQL consistently means choosing a few readable rules, using a formatter carefully, and keeping historical changes focused.
SQL SERVER – Get SQL Server Version and Edition Information – SQL in Sixty Seconds #043 – Video
Here is a quick way to find the SQL Server version and edition in sixty seconds, plus how to read version numbers and map them to each release.
SQL SERVER – An Interesting Case of Redundant Indexes – Index on Col1 and Included Columns Col2 and Col3 – Part 5
Part 5 of my redundant indexes series looks at an index on Col1 with included columns Col2 and Col3, and how it compares with the earlier cases.
SQL SERVER – What is Semantics Model – A Simple Explanation
What is a semantics model? In simple words, it is how data is organized in a database so that it makes sense to the users, not only to programmers.
SQL SERVER – Primary Key and NonClustered Index in Simple Words
In 2006 I wrote how Primary Key and Unique Key differ. Now I fill the gap and explain primary key and nonclustered index in simple words.
Waiting for an Agent Job to Finish Before the Next Step Runs
Wait for an Agent job to finish by polling its current sysjobactivity row, enforcing a timeout, and checking sysjobhistory outcome.
SQL SERVER – Backup and Restore Database Using Command Prompt – SQLCMD
Good DBAs automate the boring work. Here is a simple script to run Backup and Restore of a database from the command prompt with SQLCMD.






