T-SQL useful snippets