Answer a question on MSSQLTips

Linked to answer a question on MSSQLTips