1

I have a stored procedure that returns around 1000 rows. I want to SELECT from it.

Here is an example of what I want to do.

SELECT * FROM (EXEC my_proc)

That doesn't work so I have to use openrowset.

I'm not keen on doing this because it would just be connecting to itself.

Aside from creating a temp table, are there any other options?

Lamak
  • 67,466
  • 11
  • 101
  • 112
Jon Abaca
  • 801
  • 1
  • 8
  • 14

1 Answers1

1

See Select columns from result set of stored procedure

Community
  • 1
  • 1
Lynn Crumbling
  • 12,601
  • 8
  • 58
  • 92