Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
how to creata a view for existing stored procedure
Posted
Comments
Tejas Vaishnav 13-Mar-14 9:57am    
what you have write in your store procedure, just use that select statement and use to create view..

You cannot use a stored procedure in a select statement, which is what you would be trying to do with having a view based on an existing stored procedure.

What you can do is create a user defined fuction and use that function in the stored procedure and in the view.
 
Share this answer
 
Have a look here: create view from stored procedure[^]. On the bottom of referenced page, you'll find a solution ;)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900