Thanks for your unique point of view - it works like a charm ... will be added to my bag of "tricks"
Very nice, I too will add it to my toolkit. Especially love getting the schema details. I tried writing one to work with AdventureWorks which has multiple schemas, and got one to work, but no where near as elegant as your script.
________________________________________________________________"In theory, theory and practice are the same. In practice, they are not."
- Albert Einstein