How to call Stored Procedure in a View?

前端 未结 7 2206
灰色年华
灰色年华 2020-12-01 07:39

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

7条回答
  •  自闭症患者
    2020-12-01 08:13

    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

提交回复
热议问题