How to use a view inside a stored procedure in sql server? I tried something like this and it says that object cannot be found
CREATE VIEW myview
AS
view code
CREATE PROCEDURE myprocedure
AS
code using myview
why don't you just select
it?
create procedure myProcedure
as
select * from myView
create procedure myProcedure
As
select * from myview
Hope this helps
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.