SSMS Default Query Template
Within SSMS, by default when click on New Query, we get a blank query window. If we want to add something to the window each time a new query window is opened, we can achieve this by editing the default template. The template file SQLFile.sql, (for example, for SSMS19) is located under:
C:\Program Files (x86)\Microsoft SQL Server Management Studio 19\Common7\IDE\SqlWorkbenchProjectItems\Sql\
Whatever we put in this file, will then appear when open a new query window.
Posted by John Liu Monday, May 1, 2023