sql server 2008 r2 - Query stored procedure results -


i have stored procedure returns table of data. need query data results.

currently doing follows:

create table    #proc   (     [id] int identity(1,1) not null primary key,     [name] nvarchar(50)  null,     [metricname] nvarchar(50)  null,     [value] nvarchar(50)  null,     [pointsawarded] nvarchar(50)  null,     [maxpoints] int null,     [weightage] decimal null )  insert #proc   exec dbo.prc_shopinstancecustomersdata 2023, 10000   select name, sum(case when [pointsawarded] = 'n/a' 0 else [pointsawarded] end) totalpoints #proc group name 

i dont want use table here stored proc results. there way execute select query directly stored procedure results without fetching results table?

thanks in advance...


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -