Your old code you reference does not work - http://www.sqlservercentral.com/scripts/Maintenance+and+Management/31760/ - Invalid column name 'SchemaName' - you need to add that to the data.Dictionary definition.