SSMS Tips and Tricks 3-15: Using snippets to improve the DROP DATABASE statement
In an earlier post, I showed how to create a DROP DATABASE template in SSMS. I mentioned that a template wasn’t the best option because a command like this is normally inserted into a script; it’s not the whole script.
That’s where snippets shine. Let’s create a snippet for it.
First let’s open Code Snippets Manager (Tools > Code Snippets Manager):
You’ll see the existing snippet folders. I’ve clicked Add, then created a new folder called GL_Snippets. I created a new folder and pointed to it. For this temporary one, I’ve created it in C:\Temp but you would normally use an appropriate folder.
2025-07-26