jmadden 34422 (4/17/2014)
can i ask what this doeswhat do I have to change to make it work?
If you run with @debug = 1 in SSMS, you can look in the Messages tab to get some idea of what the result should be (look at the last "@sqlCommand = ").
It still needed some tweaking because it did not exclude the columns I specified to exclude...
Anyway, thanks for the script and looking forward to your corrections. 😀