Skip to content

Commit b90e6db

Browse files
author
Kevin Martin
committed
expanded template replacement token keys and added create table
1 parent a6e1a6a commit b90e6db

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

Development Application Settings/Red Gate/SQL Prompt/Snippets/cp.sqlpromptsnippet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
** Author: $USER$
1919
** Created On: $DATE$
2020
** Modified On: $DATE$
21-
** Description: <ProcedureDescription,, Description>
21+
** Description: Description
2222
**********************************************************************************************************************/
23-
CREATE OR ALTER PROCEDURE <ProcedureName, SYSNAME, SchemaName.BusinessEntityAction>
23+
CREATE OR ALTER PROCEDURE dbo.<Procedure Name, SYSNAME, BusinessEntityAction>
2424
-- @ParameterName AS DataType [ = DefaultValue ]
2525
-- WITH ENCRYPTION, RECOMPILE, EXECUTE AS CALLER|SELF|OWNER| 'user_name'
2626
AS

Development Application Settings/Red Gate/SQL Prompt/Snippets/csf.sqlpromptsnippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
** Modified On: $DATE$
1919
** Description: <FunctionDescription,, Description>
2020
**********************************************************************************************************************/
21-
CREATE OR ALTER FUNCTION <FunctionName, SYSNAME, SchemaName.FunctionName>(
21+
CREATE OR ALTER FUNCTION <Schema Name, SYSNAME, dbo>.<Function Name, SYSNAME, FunctionName>(
2222
-- @ParameterName AS DataType [ = DefaultValue ]
2323
) RETURNS <ReturnType,,int>
2424
-- WITH ENCRYPTION, SCHEMABINDING, RETURNS NULL ON NULL INPUT, CALLED ON NULL INPUT, EXECUTE AS CALLER|SELF|OWNER 'user_name', INLINE = {ON|OFF}

Development Application Settings/Red Gate/SQL Prompt/Snippets/ct.sqlpromptsnippet

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@
44
<Header>
55
<Title>ct</Title>
66
<Shortcut>ct</Shortcut>
7-
<Description>Create a table</Description>
7+
<Description>ES: Create a table</Description>
88
<Author />
99
<SnippetTypes>
1010
<SnippetType>Expansion</SnippetType>
1111
</SnippetTypes>
1212
</Header>
1313
<Snippet>
1414
<Declarations />
15-
<Code Language="sql"><![CDATA[CREATE TABLE $CURSOR$
15+
<Code Language="sql"><![CDATA[CREATE TABLE <Schema Name, SYSNAME, dbo>.<Table Name, SYSNAME, TableName>
1616
(
17-
-- column_name data_type,...
18-
)]]></Code>
17+
<Primary Key Column, , TableNameId> INT NOT NULL IDENTITY(1, 1),
18+
<Column Name, SYSNAME, FirstName> NVARCHAR(100) NOT NULL, $CURSOR$
19+
CONSTRAINT <Primary Key Name, SYSNAME, TableName_TableNameId> PRIMARY KEY (<Primary Key, , TableNameId>)
20+
)
21+
GO]]></Code>
1922
</Snippet>
2023
</CodeSnippet>
2124
</CodeSnippets>

Development Application Settings/Red Gate/SQL Prompt/Snippets/ctf.sqlpromptsnippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
** Modified On: $DATE$
1919
** Description: <FunctionDescription,, Description>
2020
**********************************************************************************************************************/
21-
CREATE FUNCTION SchemaName.FunctionName(
21+
CREATE FUNCTION <Schema Name, SYSNAME, dbo>.<Function Name, SYSNAME, FunctionName>(
2222
-- @ParameterName1 AS DataType [ = DefaultValue ]
2323
-- @ParameterName2 AS DataType [ = DefaultValue ]
2424
) RETURNS <@TableVariableName, SYSNAME, @VariableName> TABLE (

0 commit comments

Comments
 (0)