title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | helpviewer_keywords | monikerRange | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Insert Transact-SQL Snippets |
Learn how to choose, insert, and modify a Transact-SQL code snippet that can serve as a starting point when writing new Transact-SQL statements in the Database Engine Query Editor. |
markingmyname |
maghan |
03/14/2017 |
sql |
ssms |
conceptual |
|
>=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current |
[!INCLUDESQL Server Azure SQL Database Synapse Analytics PDW] A [!INCLUDEtsql] code snippet is a template you can use as a starting point when writing new [!INCLUDEtsql] statements in the [!INCLUDEssDE] Query Editor.
You can use the Insert Snippet menu to open a categorized list of snippets to choose from.
[!INCLUDEtsql] snippets contain replacement points: text that suggests the syntax relevant to that point. For example, the CREATE TABLE snippet has replacement points for elements such as the table name, column names, and column data types. After inserting the snippet, you must change the replacement text to form a valid [!INCLUDEtsql] statement. For more information, see Complete Transact-SQL Snippets.
-
In the [!INCLUDEssDE] Query Editor window, put the cursor where you want to insert the [!INCLUDEtsql] 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.
-
Right-click the mouse and then select the Insert Snippet command from the shortcut menu.
-
-
Double-click the snippet, or select the snippet from the snippet picker and then press TAB or ENTER.