Good article, but just one suggestion. The title is "Introduction to Bitmasking in SQL Server 2005" but the same code you have given will work just fine in SQL Server...
You should set any object you user to nothing after you're done with them. If not you may create a memory hungry app and start having random bugs/issues in your...