There are certain rules for creating functions and not all stored procedures can be converted to functions. The basic syntax for creating a function can be found in SQL BOL.
I'm just curious here, why not just call the stored procedure instead of going through the added step of making it a view? Maybe if you told us more about why you are doing this we could suggest a better way to accomplish what you want.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.