Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing all templates from SQL Server Management Studio

So in SSMS, the template browser has all of these preloaded templates that i personally will never use. I'd rather just clear this out so i can start my own structure, however, everytime i delete them from:

C:\Users[user]\AppData\Roaming\Microsoft\SQL Server Management Studio\11.0\Templates

and reboot SSMS, they all magically reappear. The templates that are in there are more or less worthless to me, but i would like to get out of saving query projects or quick templates to a folder and just put them in here for organization and ease. There's no settings that i can find that causes the behavior so i was wondering if anyone had an idea how to disable this feature.

Any help would be appreciated!

like image 463
zach Avatar asked Feb 12 '23 16:02

zach


1 Answers

If you want to remove the default templates completely, we need to delete the files and folders under both of the following folders:

64-bit SQL Server:

%ProgramFiles(x86)%\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\SqlWorkbenchProjectItems\Sql

C:\Users\<user>\AppData\Roaming\Microsoft\SQL Server Management Studio\11.0\Templates\Sql\

32-bit SQL Server:

%ProgramFiles%\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\SqlWorkbenchProjectItems\Sql

C:\Users\<user>\AppData\Roaming\Microsoft\SQL Server Management Studio\11.0\Templates\Sql\
like image 173
Horaciux Avatar answered Feb 16 '23 01:02

Horaciux