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:


If the post helped you, please share it:
Pin It

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">