How to specify Values for SSMS Template Parameters

To open a template script, double click on it or drag it from the Template Explorer (Template Browser) to SQL Server Management Studio (SSMS) Query Editor Window:


The template is a T-SQL script with parameters that are in angle brackets in the following format: parameter_name, data_type, default_value:


To edit template parameters use keyboard shortcut keys Ctrl+Shift+M, or select 'Specify Values for Template Parameters' from the SSMS Query menu:


It will open the 'Specify Values for Template Parameters' window:


If you need to change the default values, enter new values into the Value field, and press OK:


Parameter blocks will be replaced by the values you entered, and the script will be ready for execution: