Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

saving code snippets in sql server

There are a lot of code snippets in the internet at articles or Question and answer communities like stackoverflow which worth save them and refer to them whenever we need them. Memorizing all of them is so hard , so I'm wondering if SQL Server has such capability in order to save those code snippets on it ?

If it doesn't , How about other solution you may think?

Thank you

like image 485
Mostafa Avatar asked Nov 17 '10 13:11

Mostafa


People also ask

How do I add a snippet to my SQL code?

Inserting a Snippet by Using the Insert Snippet MenuIn the Database Engine Query Editor window, put the cursor where you want to insert the Transact-SQL snippet. Launch the snippet picker tooltip in one of three ways: Press CTRL+K, CTRL+X. On the Edit menu, point to IntelliSense, then click Insert Snippet.

What is SQL Server snippet?

Applies to: SQL Server (all supported versions) Azure SQL Database Azure SQL Managed Instance Azure Synapse Analytics Analytics Platform System (PDW) A Transact-SQL. code snippet is a template containing the basic structure of a Transact-SQL statement or block.

What is the best way to share a long SQL code snippets with another developer?

One of the simplest methods of sharing snippets within a team is to change the location of Prompt's snippet folder to be a network share (one that, ideally, is regularly backed up).


1 Answers

Maybe have a look at

How to: Use Templates in SQL Server Management Studio

Snippets for SQL Server Management Studio (SSMS)

like image 86
Adriaan Stander Avatar answered Dec 12 '22 21:12

Adriaan Stander