I have this script:
select name,create_date,modify_date from sys.procedures order by modify_date desc
I can see what procedures were modified lately. I will add a ‘where modify_date >= ‘ And I’d like to use some system stored procedure, that will generate me : drop + create scripts for the (let’s say 5 matching) stored procedures
Can i do this somehow?
thanks
ok. i have the final version:
http://swooshcode.blogspot.com/2008/10/generate-stored-procedures-scripts-for.html
you guys helped a lot
thanks
This ain’t pretty, but it works. Run the output from it manually or execute it with sp_executesql.
You will have to worry about lost rights as well.