Using SSMS Templates

Templates provide a framework for the creation of database objects in SSMS. They are essentially boilerplate files that help generate scripts for common database objects. They can speed up the development of these scripts and help enforce consistency in the generation of the underlying database objects.

The Template Explorer is a component window available in SSMS that can be launched by selecting Template Explorer from the View menu. Figure 4.25 shows the Template Explorer and a portion of the available SQL Server template folders. Separate templates also exist for Analysis Services. You can view them by selecting the related icon at the top of the Template Explorer.

FIGURE 4.25 The SSMS Template Explorer.

You access the ...

Get Microsoft® SQL Server 2012 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.