Save SQL Snippets in SQL Server Management Studio (SSMS)

My blog readers would probably know that I post a lot of T_SQL snippets and SQL Server Administration Snippets every now and then. One of my blog readers Kurth asked me if I store them in SSMS (SQL Server Management Studio) , for handy reference.

Thanks for asking this question Kurth. The answer is No, but I would love to store my snippets and here’s how using the SSMS Tools Pack created by SQL Server MVP Mladen Prajdić.

SSMS Tools Pack is an ‘excellent’ add-in for Microsoft SQL Server Management Studio (SSMS) 2005, 2008, 2008 R2 and their respective Express versions.

Assuming you have downloaded the Tool Pack, Open SSMS and check the Tool Bar for ‘SSMS Tool’

image

Go to SQL Snippets and feel free to use the snippets that come with it or add/import new ones.

For eg: check the ‘SST’ code snippet which automatically types the following for you

image

Go to the Query window, type SST and press Enter

SELECT  TOP 10 *
FROM

Way Cool and good work Mladen!

1 comment:

  1. Whow, that's what I'm looking for.
    Thanks for the article!!!

    ReplyDelete