SQL Server
Alteryx One runs on MongoDB; Alteryx Server can run on SQL Server. ayx sqlserver manages the SQL Server databases behind an Alteryx Server deployment — verify configuration, validate connection strings, and plan migrations. All commands are read-only unless --apply is passed.
Quick reference
Section titled “Quick reference”| Command | What it does |
|---|---|
ayx sqlserver status |
Check SQL Server connectivity and database state |
ayx sqlserver inventory |
List databases and schemas |
ayx sqlserver precheck |
Run pre-migration compatibility checks |
ayx sqlserver validate-strings |
Validate connection strings in the config |
ayx sqlserver connection-string |
Build and emit a connection string for a given scope |
ayx sqlserver migrate |
Plan or apply a schema migration |
ayx sqlserver prepare |
Prepare the SQL Server environment for an Alteryx migration |
Checking status
Section titled “Checking status”Verify the SQL Server instance is reachable and the Alteryx databases exist:
ayx sqlserver status --profile prodGet an inventory of databases and schemas:
ayx sqlserver inventory --profile prodPrechecks
Section titled “Prechecks”Run compatibility checks before a migration or upgrade. Specify a collation if your environment requires a specific one:
ayx sqlserver precheck --profile prodayx sqlserver precheck --profile prod --collation SQL_Latin1_General_CP1_CI_ASValidating connection strings
Section titled “Validating connection strings”Check that all connection strings in the active config resolve and authenticate:
ayx sqlserver validate-strings --profile prodBuilding a connection string
Section titled “Building a connection string”Generate a connection string for a given scope. The default scope is controller:
ayx sqlserver connection-string --profile prodSpecify a different scope, server, database, or auth method:
ayx sqlserver connection-string \ --profile prod \ --scope controller \ --server sql-prod.internal \ --database AlteryxGallery \ --auth sql \ --port 1433 \ --encrypt \ --trust-server-certificateAvailable --auth values: sql (default). See --help for the full list as it expands.
For AlwaysOn Availability Group environments:
ayx sqlserver connection-string --profile prod --multi-subnet-failoverMigration planning and execution
Section titled “Migration planning and execution”prepare and migrate support the same flags. Always run prepare first — it sets up the target environment. Then run migrate to apply schema changes.
Both commands default to a dry run. Review the plan before adding --apply.
# Prepare the environment (dry run)ayx sqlserver prepare --profile prod --target-version 2024.2
# Inspect the output, then commitayx sqlserver prepare --profile prod --target-version 2024.2 --apply
# Plan the migration (dry run)ayx sqlserver migrate --profile prod --target-version 2024.2
# Applyayx sqlserver migrate --profile prod --target-version 2024.2 --applyBoth commands also accept --dry-run explicitly if you prefer to make the intent clear in scripts.
Common flags
Section titled “Common flags”| Flag | Default | Notes |
|---|---|---|
--profile <name> |
active profile | Named profile from config |
--collation <value> |
(server default) | Collation for precheck |
--scope <value> |
controller |
Scope for connection-string |
--auth <value> |
sql |
Auth method for connection-string |
--target-version <ver> |
(none) | Required for prepare and migrate |
--apply |
(off) | Required to commit prepare and migrate |
--dry-run |
(off) | Explicit dry-run flag on prepare and migrate |
--yes |
(off) | Skip TTY confirmation |
JSON output
Section titled “JSON output”All commands accept --output json as a global flag:
ayx --output json sqlserver status --profile prod