Home Forums SQL Server 2008 T-SQL (SS2K8) Second resultset of stored procedure into a temp table - also, what's the best way to flay a develoer? RE: Second resultset of stored procedure into a temp table - also, what's the best way to flay a develoer?

  • Honestly, I'd probably kludge this one if possible.

    See if you can add an optional flag as a parameter to the proc to indicate that the first result set is not to be returned, only the second. Then you can capture the output from the proc directly into a temp table, for example, since it will then be only one result set.

    SQL DBA,SQL Server MVP(07, 08, 09) A socialist is someone who will give you the shirt off *someone else's* back.