From 599797e5cbbbc50a65bf3127d79bd95f7f5976e5 Mon Sep 17 00:00:00 2001 From: codetuner Date: Wed, 6 Nov 2024 14:20:36 +0100 Subject: [PATCH] Added SQL renamecolumn snippet --- .../SQL/My Code Snippets/renamecolumn.snippet | 52 +++++++++++++++++++ .../Install on ManagementStudio.cmd | 2 +- .../My Code Snippets/renamecolumn.snippet | 52 +++++++++++++++++++ 3 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 Microsoft SQL Server Management Studio/Code Snippets/SQL/My Code Snippets/renamecolumn.snippet create mode 100644 Microsoft Visual Studio/Code Snippets/SQL_SSDT/My Code Snippets/renamecolumn.snippet diff --git a/Microsoft SQL Server Management Studio/Code Snippets/SQL/My Code Snippets/renamecolumn.snippet b/Microsoft SQL Server Management Studio/Code Snippets/SQL/My Code Snippets/renamecolumn.snippet new file mode 100644 index 0000000..c4b7825 --- /dev/null +++ b/Microsoft SQL Server Management Studio/Code Snippets/SQL/My Code Snippets/renamecolumn.snippet @@ -0,0 +1,52 @@ + + +<_locDefinition xmlns="urn:locstudio"> + <_locDefault _loc="locNone" /> + <_locTag _loc="locData">Title + <_locTag _loc="locData">Description + <_locTag _loc="locData">Author + <_locTag _loc="locData">ToolTip + + +
+ My Rename Column + myrenamecolumn + Renames a column. + Rudi Breedenraedt + + Expansion + +
+ + + + SchemaName + Name of the schema + dbo + + + TableName + Name of the table + Sample_Table + + + OldColumnName + Original name of the column + Old_Column + + + NewColumnName + New name of the column + New_Column + + + + + + +
+
+ diff --git a/Microsoft SQL Server Management Studio/Install on ManagementStudio.cmd b/Microsoft SQL Server Management Studio/Install on ManagementStudio.cmd index b1246f6..1d74d66 100644 --- a/Microsoft SQL Server Management Studio/Install on ManagementStudio.cmd +++ b/Microsoft SQL Server Management Studio/Install on ManagementStudio.cmd @@ -1,2 +1,2 @@ @ECHO OFF -XCOPY "%~dp0Code Snippets" "%USERPROFILE%\Documents\Visual Studio 2015\Code Snippets" /s /e \ No newline at end of file +XCOPY "%~dp0Code Snippets" "%USERPROFILE%\Documents\SQL Server Management Studio\Code Snippets" /s /e \ No newline at end of file diff --git a/Microsoft Visual Studio/Code Snippets/SQL_SSDT/My Code Snippets/renamecolumn.snippet b/Microsoft Visual Studio/Code Snippets/SQL_SSDT/My Code Snippets/renamecolumn.snippet new file mode 100644 index 0000000..f505254 --- /dev/null +++ b/Microsoft Visual Studio/Code Snippets/SQL_SSDT/My Code Snippets/renamecolumn.snippet @@ -0,0 +1,52 @@ + + +<_locDefinition xmlns="urn:locstudio"> + <_locDefault _loc="locNone" /> + <_locTag _loc="locData">Title + <_locTag _loc="locData">Description + <_locTag _loc="locData">Author + <_locTag _loc="locData">ToolTip + + +
+ My Rename Column + myrenamecolumn + Renames a column. + Rudi Breedenraedt + + Expansion + +
+ + + + SchemaName + Name of the schema + dbo + + + TableName + Name of the table + Sample_Table + + + OldColumnName + Original name of the column + Old_Column + + + NewColumnName + New name of the column + New_Column + + + + + + +
+
+