The SQL Package actions in Continua are a wrapper around the SqlPackage command line. If you're having trouble using any of the SQL Package actions, please refer to the Command Line Reference.
The SQL Package Script action is a premium action that creates a Transact-SQL incremental update script that updates the schema of a target database to match the schema of a source database.
A friendly name for this action (will be displayed in the actions workflow area).
Determines if this action will be run within the relevant stage.
The path to a file to be used as the source. This would generally have the extension .dacpac. [/SourceFile]
The path for the generated script file. [/OutputPath]
Whether the action should overwrite the file it is generating. [/OverwriteFiles]
The file path to a DAC Publish Profile. The profile defines a collection of properties and variables defining the target database connection and deployment settings. [/Profile]
The Using drop down is populated with any property collector whose namespace matches the pattern defined by the SQL Package Script action. The pattern for this action is ^SqlPackage\..*
If you create a property collector for this action, make sure you select the Path Finder PlugIn type and give it a name that will match the pattern above in blue. Example names listed here, search the table's Plugin column for "SQL Package Script".
For more in-depth explanations on property collectors see Property Collectors.
Alternatively, you can select the Custom option from the Using drop down list and specify a path in the resulting input field that will be displayed. Please read Why it's a good idea to use a property collector before using this option.
Whether to use a connection string, a target file or specify each part of the connection separately.
The SQL Server/Azure connection string to connect to the database. [/TargetConnectionString]
An example of a valid connection string is:
Provider=SQLNCLI11;Password=myPassword;User ID=[username]@[servername];Initial Catalog=databasename;Data Source=tcp:[servername].database.windows.net;
The name of the server that hosts the database. The server should be accessible by the agent running the action. [/TargetServerName]
The name of the source database. [/TargetDatabaseName]
The authentication method. Either by using a Username and Password or Windows Authentication.
The name of the user who has permissions to perform the operation on the database. [/TargetUser]
The password for the user connecting to the database. [/TargetPassword]
If this is selected, windows authentication is used to gain permission to perform the operation on the database.
If this is ticked, SQL encryption is used. [/TargetEncryptConnection]
If this is ticked, SSL certificate validation is bypassed. [/TargetTrustServerCertificate]
The timeout for establishing a connection to the database in seconds. Leave blank to use the default of 15 seconds. [/TargetTimeout]
A target file (that is, a .dacpac file) to be used as the target of action instead of a database. [/TargetFile]
The name of the target database. [/TargetDatabaseName]
Specify one variable per line in the format of variable_name=variable_value. [/Variables:]
Specify one property per line in the format of property_name=property_value. The full list of properties can be found at SqlPackage.exe. [/p:]
Specifies the amount of information to display in the build log. [/Quiet | /Diagnostics]
The command timeout in seconds when executing queries against SQL Server. Leave blank to use the default of 30 seconds. [/p:CommandTimeout=]
Degree of parallelism for concurrent operations running against a database. [/MaxParallelism]
Any extra command-line parameters for SQLPackage.exe. The full list of extra arguments can be found at SqlPackage.exe.
How many seconds to wait for the action to finish before timing out. The default is 86400 seconds (24 hours).
Tick to continue build on failure marking the action with a warning status.
If this is ticked, any warnings logged will not mark the action with a warning status.
Multiple environment variables can be defined - one per line. These are set before the command line is run.
If this is ticked, environment variable values are written to the build log.
Tick this checkbox to set up a list of new environment variables prefixed with 'ContinuaCI.' for all current system expression objects and variables.
This checkbox is visible only if the 'Generate system environment variables' checkbox is ticked.
If this is ticked, the values of any variables marked as sensitive will be masked with **** when setting system environment variables. Clear this to expose the values.