
To script multiple objects you need to use the View menu to open the Object Explorer Details window. But not everyone realizes that you can also script multiple object at once.
Script multiple objects by using the Object Explorer Details - Scripting objects like tables and stored procedures is one of the handiest features in SSMS. CTRL + I – Display the incremental search dialog. CTRL + SHIFT + Q– Display the query designer. CTRL + L - Display the query execution plan. F5, CTRL + E or ALT + X - Execute the currently selected code. SSMS provides the following built-in keyboard shortcuts that you’ll find handy. Speed up your editing using keyboard shortcuts – Taking advantage of keyboard shortcut can make your work faster and more efficient. Both parts of the split window can be scrolled and edited independently. Splitting the query window can be useful if you have a large query and want to view or work on different sections of the same query. Split the Query window to more efficiently work on large queries – It’s not immediately obvious but the SSMS Query Editor window can be split in two, enabling you to see two different sections of the same query simultaneously. The server connection information is stored in an XML file and the server will be displayed in the Registered Servers window the next time you open SSMS. The new server will appear under Local Server Groups. Enter the server connection information and close the window. Expand the Database Engine node, then right click on the Local Server Groups folder and select New Server Registration.
To add a registered server open the Registered Servers window from the View menu or press CTRL + ALT + G. SSMS Registered Servers enable these details to be entered just once and reused every time you open up SSMS.
Speed up your server connections with Registered Servers - If you have a lot of servers re-entering the connection information in Object Explorer every time you start SSMS can be time consuming.
In this article, I’ll show you ten tips that you can use to get more out of SSMS. However, while everyone knows the basics of how to use SSMS to navigate through database objects as well as write and run queries there’s a lot of other functionality that’s built into SSMS that you might have missed. There’s no doubt that SQL Server Management Studio (SSMS) is the SQL Server DBA’s best friend and most frequently used tool.