How to call Stored Procedure in a View?

2019-01-08 20:18发布

How would I call a Stored Procedure that returns data in a View? Is this even possible?

7条回答
The star\"
2楼-- · 2019-01-08 21:00

Easiest solution that I might have found is to create a table from the data you get from the SP. Then create a view from that:

Insert this at the last step when selecting data from the SP. SELECT * into table1 FROM #Temp

create view vw_view1 as select * from table1

查看更多
登录 后发表回答