2

I want to use Visual Studio snippets to generate SQL code, for example we have standard naming conventions for foreign keys etc and it would be great if I could just expand a snippet in my SQL script file.

However as far as I can tell the only languages that are supported by the Snippet manager are C#, VB J# and XML

http://msdn.microsoft.com/en-gb/library/ms171421(VS.80).aspx

Does anyone know of a way to have a snippet expand to SQL?

Derek

2 Answers 2

1

I would recommend you consider using T4, which is built into Visual Studio.

Oleg has great examples, including one for stored procedures

Sign up to request clarification or add additional context in comments.

Comments

1

Visual Studio 2010 added support for SQL snippets.

You can read more about them at this MSDN page

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.