Since one cannot use CREATE VIEW within a Stored Procedure, is there a way to overcome that limitation? Any help in this regard is appreciated. [sig][/sig]
Rob is right, a cursor could be used but you may have other reasons for wanting a View... the view will leave a permanent way of accessing data in tables and be have more efficient use of resources.
The only way to do really sneaky things like creating views from stored procedures is to generate a string or text file of sql statements from the sp and run it using a xp_cmdshell....the create view will then be being run by the shell user and not the sp. [sig]<p> <br><a href=mailto: > </a><br><a href=
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.