Using SELECT with a SP

  • Hi!

    I have a stored procedure with parameters, and I wonder if there is any way of using SELECT with that SP?

    Like this or something:

    SELECT col1,col2,sum(col3) as output FROM

    EXEC sp_theSP 'temp','2005-05-01','2005-05-10'

    group by col1,col2,output

    Above there's syntax errors, but is it possible to do this way?

     

  • convert the sp to a table function and it'll work.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply