I used SQLPUBWIZ with the -schemaonly option which created the script without any errors. Now when I try to run the script it returns an error of:
Msg 4405, Level 16, State 1, Server MYSERVER, Procedure usp_CreateSomething, Line 25
View or function 'dbo.SomeView' is not updatable because the modification affects multiple base tables.
This is because the store procedure is using a view which has a trigger on it. The view is created before the store procedure (which is correct) but the trigger on the view is created much later than the store procedure. I had to cut and paste the store
procedure and put it after the creation of the view trigger to get the script to function properly.
Is there another work around or fix for this as I am trying to automate the process of the script?
Thanks for any help in advance.