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 Export action is a premium action that exports a live database from SQL Server or Azure SQL Database to a BACPAC package (.bacpac file). By default, data for all tables will be included in the .bacpac file. Optionally, you can specify only a subset of tables for which to export data. Validation for the Export action ensures Azure SQL Database compatibility for the complete targeted database even if a subset of tables is specified for the export.
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 target data-tier application package file to save a logical copy of the database schema and data to. This should have the extension .bacpac. [/TargetFile]
Whether the action should overwrite the file it is generating. [/OverwriteFiles]
The Using drop down is populated with any property collector whose namespace matches the pattern defined by the SQL Package Export 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 Export".
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 or specify each part of the connection separately.
The SQL Server/Azure connection string to connect to the database. [/SourceConnectionString]
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. [/SourceServerName]
The name of the source database. [/SourceDatabaseName]
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. [/SourceUser]
The password for the user connecting to the database. [/SourcePassword]
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. [/SourceEncryptConnection]
If this is ticked, SSL certificate validation is bypassed. [/SourceTrustServerCertificate]
The timeout for establishing a connection to the database in seconds. Leave blank to use the default of 15 seconds. [/SourceTimeout]
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.