when using sorred procedure to create a temporary table is it possable to base the number of columns in that table on another variable?