title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | f1_keywords | helpviewer_keywords | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Template Explorer |
Template Explorer |
markingmyname |
maghan |
01/19/2017 |
sql |
ssms |
conceptual |
|
|
[!INCLUDESQL Server Azure SQL Database Synapse Analytics PDW] [!INCLUDEssNoVersion] provides a variety of templates. Templates are boilerplate files containing SQL scripts that help you create objects in a database. The first time the template explorer is opened, a copy of the templates are placed in the user's folder in C:\Users, under AppData\Roaming\Microsoft\SQL Server Management Studio\130\Templates.
You can browse the available templates in Template Explorer, then open a template to incorporate the code into a code editor window. You can also create custom templates.
Templates are available for solutions, projects, and various types of code editors. Templates are available to create objects like databases, tables, views, indexes, stored procedures, triggers, statistics, and functions. In addition, there are templates that help you to manage your server by creating extended properties, linked servers, logins, roles, users, and templates for [!INCLUDEssASnoversion].
The template scripts provided with SQL Server Management Studio contain parameters to help you customize the code. When you open a template, Use the Specify Values for Template Parameters dialog box to insert values into the script.
Create custom templates for tasks you perform frequently. Organize your custom scripts into the existing folders or create a new folder structure.
The [!INCLUDEssDE] Query editor also supports code snippets, which can be inserted at specific locations in a script by right-clicking at that location.
Use the following topics to get started with templates
Description | Topic |
---|---|
Describes how to incorporate the code from a template into a code editor window. | Open a Template |
Describes how to replace template parameter values after opening a template in a code editor. | Replace Template Parameters |