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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -