September 15, 2010

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!


Did you like this post?
kick it on DotNetKicks.com
subscribe via rss subscribe via e-mail
print this post follow me on twitter


About The Author

Suprotim Agarwal, ASP.NET Architecture MVP works as an Architect Consultant and provides consultancy on how to design and develop Web applications.

Suprotim is also the founder and primary contributor to DevCurry, DotNetCurry and SQLServerCurry. He has also written an EBook 51 Recipes using jQuery with ASP.NET Controls.

Follow him on twitter @suprotimagarwal

 
  Feedback:

comments

1 Response to "Save SQL Snippets in SQL Server Management Studio (SSMS)"
  1. Anonymous said...
    February 24, 2012 at 7:06 AM

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

 

Copyright © 2009-2014 All Rights Reserved for SQLServerCurry.com by Suprotim Agarwal | Terms and Conditions