I have a stored procedure in SQL which I can't change. It needs few input parameters and returns a table with 100+ rows and several columns.
exec dbo.Select_Data 0, 0, 18, 50
I need something to get count of returned rows:
select count(*) from (exec dbo.Select_Data 0, 0, 18, 50)
and a way to get values from e.g. Name column:
select Id, Name from (exec dbo.Select_Data 0, 0, 18, 50) where Id=10
How do I do this?