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!


About The Author

Suprotim Agarwal, MCSD, MCAD, MCDBA, MCSE, is the founder of DotNetCurry, DNC Magazine for Developers, SQLServerCurry and DevCurry. He has also authored a couple of books 51 Recipes using jQuery with ASP.NET Controls and a new one recently at The Absolutely Awesome jQuery CookBook.

Suprotim has received the prestigous Microsoft MVP award for nine times in a row now. In a professional capacity, he is the CEO of A2Z Knowledge Visuals Pvt Ltd, a digital group that represents premium web sites and digital publications comprising of Professional web, windows, mobile and cloud developers, technical managers, and architects.

Get in touch with him on Twitter @suprotimagarwal, LinkedIn or befriend him on Facebook

1 comment:

Anonymous said...

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