Skip to content

Script Object Definition

Alex Bochkov edited this page Mar 8, 2026 · 2 revisions

Script Object Definition lets you generate a CREATE/ALTER script for a SQL object directly from text selected in the query editor.

image

How to use

  1. Highlight an object name in the query window. Three-, two- and one-part qualified names are supported.
  2. Run Script Object Definition from the Axial SQL Tools toolbar/command.
  3. A new query tab opens with the generated script.

If the same object name exists in multiple places, a selection window is shown so you can choose the exact match.

Supported object types

  • Tables (with related keys/indexes/options)
  • Views
  • Stored procedures
  • Functions
  • Synonyms
  • User-defined types and table types
  • Triggers
  • Indexes
  • Constraints (PK, unique, foreign key, check, default)

Notes

  • The search runs in the current database and also in master.
  • If nothing is selected, or the object cannot be found, the extension shows an error message.

Clone this wiki locally