sql - Using the result of an Stored procedure in a Select statement -
i have stored procedure returns dataset(table)
. how can use result of stored procedure in select
statement?
i need this
select t1.* dummy t0 inner join (exec [dbo].[spgetresults] '900',300,'usd') t1 on t1.akey=t0.akey
i'm using sql server 2005
create table-valued user-defined function instead.
Comments
Post a Comment