SELECT YEAR(35000/20) returns 1904, which looks strange. This puzzle shows how the YEAR function treats a plain integer. Can you explain the result?
Salted Password Hashes With HASHBYTES and CRYPT_GEN_RANDOM
A salt makes two identical passwords look different, yet it does not slow down guessing. Here is a small demo of both, and what to use instead.
What is Alternative to CASE Statement in SQL Server? – IIF Function – Interview Question of the Week #164
What is the alternative to CASE statement in SQL Server? The IIF function. Here are two examples of CASE and IIF, and why IIF deserves more use.
SQL SERVER – What is Forwarded Records and How to Fix Them?
Forwarded Records in heap tables still puzzle many SQL Server users, years after I first wrote about them. Here is what they are and how to fix them.
SQL SERVER – What is Tail-Log Backups?
Tail-Log Backups capture the end of an available transaction log before a restore. I assess them within the intended recovery chain.







