|
|
Question : View in Stored Procedure
|
|
Hi Friends
I am facing this below problem when i tried to create view in a stored Procedure on SQL SERVER EnterPrise Manager.
CREATE procedure TEST as begin
Create view vvv as select * from mmm
end GO
Error 156 : Incorrect syntax near the keyword 'view'
Thanks & Regards Manish Kaushik
|
Answer : View in Stored Procedure
|
|
try exec('create view...') instead...
but please confirm that the create view statement works standalone in query analyzer....
|
|
|
|