Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.
This repository was archived by the owner on May 7, 2024. It is now read-only.

Table output not working when scripting from Azure SQL Data Warehouse  #122

@merrillaldrich

Description

@merrillaldrich

Scripting aborts when processing tables from Azure SQL Data Warehouse. No information about which object if any is the cause. I am using this command line in PowerShell:

mssql-scripter -S <server> -d <database> -U <user> -P <password> --script-create --file-path "$scriptoutputfolder" --target-server-version 'AzureDW' --exclude-use-database --include-types table --file-per-object --display-progress

and I get output like:

...
Scripting progress: Status: Progress Progress: 92 out of 126 objects scripted
Scripting progress: Status: Progress Progress: 92 out of 126 objects scripted
Scripting progress: Status: Progress Progress: 92 out of 126 objects scripted
Scripting request: 3fe33b8a-a875-4916-a52d-6a4e987ce7ad encountered error: An error occurred while scripting the objects.
Error details: Microsoft.SqlServer.Management.SqlScriptPublish.SqlScriptPublishException: An error occurred while scripting the objects. ---> Microsoft.SqlServer.Management.Smo.
UnsupportedVersionException: Either the object or one of its properties is not supported on the target server version.

   at Microsoft.SqlServer.Management.Smo.SqlSmoObject.ThrowIfBelowVersionLimit(SqlServerVersionInternal targetVersion, SqlServerVersionInternal upperLimit, String exceptionText)

   at Microsoft.SqlServer.Management.Smo.Index.ClusteredColumnstoreIndexScripter.Validate()

   at Microsoft.SqlServer.Management.Smo.Index.IndexScripter.GetCreateScript()

This is puzzling because my source and target versions/editions of SQL Server are the same - I just want a Data Warehouse script from Data Warehouse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions