-
Notifications
You must be signed in to change notification settings - Fork 9
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.
- Highlight an object name in the query window. Three-, two- and one-part qualified names are supported.
- Run Script Object Definition from the Axial SQL Tools toolbar/command.
- 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.
- 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)
- 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.