Press "Enter" to skip to content

Script multiple objects in SSMS

Aim: To script multiple database objects using the Object Explorer Details window in SQL Server Management Studio (SSMS).

It’s not possible to script multiple objects at the same time from the Object Explorer window in SSMS.

01_script_object_explorer

However, by opening the Object Explorer Details window from the View menu, you can navigate to the relevant folder for a database (e.g. Stored Procedures) & select multiple objects in that folder.

02_object_explorer_details

You can then right-click on the selected objects & script them to a single T-SQL query.

03_script_multiple_objects

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *