I have the following stored procedure that generates SQL statements based on certain conditions.
I\'d like for the SQL statements to also return the actual results into a
) AS [ValidationCounts]; -- insertion here- Insert into temp_table (col1, col2, col3, ...) SELECT @ReportYearCmd AS ReportYearCmd, @CosCountCmd AS CosCountCmd, @FranchiseCountCmd AS FranchiseCountCmd, @ProductCountCmd AS ProductCountCmd;