• Cool script.

    There are a couple of minor issues that i ran into on a sql server set for a case sensitive server collation like Latin1_General_BIN.

    Pretty easy stuff to work through though...substring error etc.