June 17, 2020 at 3:33 pm
Dear All,
I have a database which has about 50000 stored procedures. I need to script out around 200 procedures from the database. Using SSMS i am finding difficult to go and search for the object name one by one and generate the script. Is there a way to script out n number of objects using any query or simple tools. Thanks in advance!
June 17, 2020 at 4:04 pm
look for dbatools.io - with it you can script some, but not all of the objects, and can apply filtering.
and I may be able to post another script that does script all you want filtering for those you need.
June 17, 2020 at 6:03 pm
Either that or look into sys.SQL_Modules, which is a system object that comes with SQL Server and can be interrogated using T-SQL.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 18, 2020 at 4:16 am
Thank you. Waiting for your scripts eagerly.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply