I have a stored procedure in SQL that I cannot modify. It requires several 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 the number of rows returned:
select count(*) from (exec dbo.Select_Data 0, 0, 18, 50)
and a method of obtaining values, for example. Column Designation:
select Id, Name from (exec dbo.Select_Data 0, 0, 18, 50) where Id=10
How to do it?
source share