• I think we should start using the SQL CLR to accomplish all this going forward. But, a good code though.