I am trying to determine the number of columns that are returned from
a stored procedure using TSQL. I have a situation where users will be
creating their own procedures of which I need to call and place those
results in a temp table. I will not be able to modify those users
procedures. I figure if I have the number of columns I can dynamically
create a temp table with the same number of columns, at which point I
can then perform an INSERT INTO #TempTableCreat edDynamically EXEC
@UserProcCalled . With that said, does anyone have any idea how to
determine the number of rows that an SP will return in TSQL?
Thanks!
a stored procedure using TSQL. I have a situation where users will be
creating their own procedures of which I need to call and place those
results in a temp table. I will not be able to modify those users
procedures. I figure if I have the number of columns I can dynamically
create a temp table with the same number of columns, at which point I
can then perform an INSERT INTO #TempTableCreat edDynamically EXEC
@UserProcCalled . With that said, does anyone have any idea how to
determine the number of rows that an SP will return in TSQL?
Thanks!
Comment