Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Hayes Workshop: SQL RenameNew to Visual Studio Code? Get it now.
Hayes Workshop: SQL Rename

Hayes Workshop: SQL Rename

Jake Hayes

|
1 install
| (0) | Free
Safely rename local T-SQL identifiers in the active editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Hayes Workshop: SQL Rename for VS Code

Rename temporary tables and explicit SQL aliases in the active SQL editor, including unsaved tabs. The command uses the same ScriptDom-based C# engine as the SSMS extension. It preserves comments, strings, whitespace, and formatting, shows a count before applying edits, and makes the edits as one undo step.

Build and install

Requires the .NET 8 runtime and Node.js. From this directory:

npm install
npm test
npm run package
code --install-extension .\hayes-workshop-sql-rename-0.1.0.vsix

Alternatively, use Extensions → … → Install from VSIX… in VS Code. Open a .sql file, then run Hayes Workshop: Rename SQL Identifier from the Command Palette or the editor context menu. Select an identifier first to prefill the prompt.

The VS Code package is separate from the SSMS VSIX. Its author is Jake Hayes and its Marketplace publisher ID is jakehayes12798.

Current behavior

  • Temporary-table renames replace references to that exact identifier.
  • Alias renames require an explicit AS alias declaration and update qualified references such as alias.Column.
  • Dynamic SQL is treated as text and is not rewritten.
  • The extension runs the local .NET engine; it does not send SQL to a service or execute it.

License

SQL Rename is licensed under the GNU General Public License version 3 or later. Copyright (C) 2026 Jacob Hayes. The bundled Microsoft ScriptDom library retains its MIT license.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft