I like the idea of this but the only issue I have is this, If I want to run this against our production warehouse I'm not going to have rights to create a stored procedure.
Maybe later I'll look into modifying it to not be a stored procedure for what I will need.
Thanks again for the base code at least.
-------------------------------------------------------------
we travel not to escape life but for life not to escape us
Don't fear failure, fear regret.