Table of Contents

Search

  1. Preface
  2. Introduction to Microsoft Azure Synapse SQL Connector
  3. Connections for Microsoft Azure Synapse SQL
  4. Mappings for Microsoft Azure Synapse SQL
  5. Upgrading to Microsoft Azure Synapse SQL Connector
  6. Migrating a mapping
  7. SQL ELT optimization
  8. Data type reference
  9. Troubleshooting

Microsoft Azure Synapse SQL Connector

Microsoft Azure Synapse SQL Connector

Microsoft Azure Synapse SQL sources in mappings

Microsoft Azure Synapse SQL sources in mappings

In a mapping, you can configure a Source transformation to represent a single
Microsoft Azure Synapse SQL
object.
When you read data from
Microsoft Azure Synapse SQL
, you can configure key range partitioning to optimize the mapping performance at run time.
The following table describes the
Microsoft Azure Synapse SQL
properties that you can configure in a Source transformation:
Property
Description
Connection
Name of the source connection.
You can select an existing connection, create a new connection, or define parameter values for the source connection property.
If you want to overwrite the parameter at runtime, select the
Allow parameter to be overridden at run time
option when you create a parameter. When the task runs, the agent uses the parameters from the file that you specify in the task advanced session properties.
You can switch between a non-parameterized and a parameterized Microsoft Azure Synapse SQL connection. When you switch between the connections, the advanced property values are retained.
Source Type
Type of the source object.
Select Single Object, Multiple Objects, Query, or Parameter.
When you specify a custom SQL query as source type, the Secure Agent evaluates the properties in the following order to run a mapping:
  1. SQL Override
  2. Table Name Override
  3. Custom SQL
You cannot parameterize a source query object at runtime in a mapping.
You cannot specify Custom SQL as a parameter for mappings in advanced mode.
Object
The source object for the task.
You can use external tables as
Microsoft Azure Synapse SQL
sources in mappings.
Parameter
Select an existing parameter for the source object or click
New Parameter
to define a new parameter for the source object. The
Parameter
property appears only if you select Parameter as the source type.
If you want to overwrite the parameter at runtime, select the
Allow parameter to be overridden at run time
option when you create a parameter. When the task runs, the agent uses the parameters from the file that you specify in the task advanced session properties. Ensure that the parameter file is in the correct format.
Filter
Filters records based on the filter condition.
You can specify a simple filter or an advanced filter.
Sort
Not applicable.
The following table describes the
Microsoft Azure Synapse SQL
source advanced properties that you can configure in a Source transformation:
Property
Description
Azure Blob Container Name
Required if you select Azure Blob storage in the connection properties.
The name of the container in Microsoft Azure Blob Storage.
The container name must not contain special characters.
ADLS FileSystem Name
Required if you select ADLS Gen2 storage in the connection properties.
The name of the file system in Microsoft Azure Data Lake Storage Gen2.
The file system name must not contain special characters.
You can also specify the path of the directory under the file system. Use only a forward slash to specify the directory path.
Schema Name Override
Overrides the schema specified in the connection.
Table Name Override
Overrides the table name of the imported
Microsoft Azure Synapse SQL
source table.
Staging File Format
Type of file format to use when you stage the files in Azure storage.
Select one of the following formats:
  • Delimited Text
  • Parquet
Field Delimiter
Character used to separate fields in the file. Default is
0x1e
. You can specify 'TAB' or 0-256 single-char printable and non-printable ASCII characters. Non-printable characters must be specified in hexadecimal.
Multi-char ASCII characters except TAB are not applicable. You cannot use the following non-printable characters:
00x0
,
0x0
,
0x0A
,
0x1B
,
0x0D
, and
0x1F
Number of Concurrent Connections to Blob Store
1
Number of concurrent connections to extract data from the Microsoft Azure Blob Storage. When reading a large-size blob, you can spawn multiple threads to process data. Configure
Blob Part Size
to partition a large-size blob into smaller parts.
Default is 4. Maximum is 10.
Blob Part Size
1
Partitions a blob into smaller parts each of specified part size. When reading a large-size blob, consider partitioning the blob into smaller parts and configure concurrent connections to spawn required number of threads to process data in parallel.
Default is 8 MB.
Pre-SQL
Pre-SQL command that must be run before reading data from the source.
Post-SQL
Post-SQL command that must be run after reading data from the source.
SQL Override
When you read data from a
Microsoft Azure Synapse SQL
object, you can configure SQL overrides and define constraints.
On Pre-Post SQL Error
Determines the behavior when a task that includes pre-SQL or post-SQL commands encounters errors.
Select one of the following options:
  • Continue. The task continues regardless of errors.
  • Stop. The task stops when errors occur while executing pre-SQL or post-SQL commands.
Quote Character
Specifies the quote character to skip when you read data from Microsoft Azure Synapse SQL.
The quote character that you specify must not exist in the source table. If it exists, enter a different quote character value.
Default is
0x1f
.
Interim Directory
1
Optional. Path to the staging directory in the Secure Agent machine.
Specify the staging directory where you want to stage the files when you read data from
Microsoft Azure Synapse SQL
. Ensure that the directory has sufficient space and you have read permissions to the directory.
Default staging directory is
/tmp
.
You cannot specify an interim directory when you use the Hosted Agent.
Tracing Level
1
Sets the amount of detail that appears in the log file. You can choose terse, normal, verbose initialization, or verbose data. Default is normal.
1
Doesn't apply to mappings in advanced mode.

0 COMMENTS

We’d like to hear from you!