Free Utility for SQL Server 2012 CTP1 – Snippets Generator v1.0

Free Utility for SQL Server 2012 CTP1 – Snippets Generator v1.0

Share on Facebook0Share on Google+0Tweet about this on TwitterShare on LinkedIn0Share on Reddit0
**
** [Update – Dec 12, 2011] Snippets Generator is now on CodePlex!
**

 T-SQL code snippets is a very handy new feature in SQL Server 2012 CTP1 (codenamed “Denali”).

Using code snippets you can save time when you write code and you just need to enter code that does common tasks. Code reuse has always been useful and it really increases productivity!

In SQL Server 2012 CTP1 you can import your own snippets. However, prior to that, you need to create a snippet.

Each snippet is an XML file that specifies some header information regarding the snippet and then it includes the T-SQL code.

A sample T-SQL code snippet for SQL Server 2012 CTP1 is illustrated in the following image:

Yesterday while I was recording my Webcast on Denali, I thought to myself: “By the time the XML structure is common for all T-SQL code snippets for SQL Server Denali why not creating a Windows Forms Application that can server as T-SQL code snippets generator?

Today I implemented my idea and the outcome is “Snippets Generator v1.0” 🙂

Using this tool you can generate T-SQL code snippets for SQL Server “Denali”, save it into a directory and then add the directory, and consequently your custom snippets, into SQL Server “Denali” via the Code Snippets Manager! The directory’s name will be the snippet category name in Code Snippet Manager and its contents will be the snippets!

You can download the tool from here:

Prerequisites:

  • .NET Framework 3.5 SP1
  • SQL Server 2012 CTP1 (for importing the generated snippets(s) 🙂


Drop me a line if you like the tool! Your valuable feedback is always welcome and much appreciated!

* Please note that this is a freeware. I will not be responsible for illegal actions or damage caused by the misuse of this software.



Recommended eBooks on SQL Server:

Tuning SQL Server: eBook by SQL Server MVP Artemakis Artemiou
Tuning SQL Server: eBook by SQL Server MVP Artemakis Artemiou
Administering SQL Server: eBook by SQL Server MVP Artemakis Artemiou
Administering SQL Server: eBook by SQL Server MVP Artemakis Artemiou
Artemakis Artemiou
Artemakis Artemiou is a Senior SQL Server Architect, Author, Software Developer and a Microsoft Data Platform MVP. He has over 15 years of experience in the IT industry in various roles. Among other, via his initiative SQLEBooks.com, Artemakis authors and publishes eBooks on different topics on SQL Server. Artemakis currently serves as the President of the Cyprus .NET User Group (CDNUG) and the International .NET Association Country Leader for Cyprus (INETA). Additionally he is the founder of the SQLArtBits initiative that aims to provide the technical community with simple, yet powerful and high-quality SQL Server tools. Currently, the highlights of these tools are DBA Security Advisor and In-Memory OLTP Simulator. Artemakis's official website can be found at aartemiou.com. Artemakis's blogs can be found at: SQLNetHub.com and TechHowTos.com.

2 thoughts on “Free Utility for SQL Server 2012 CTP1 – Snippets Generator v1.0