tMSSqlOutput
Executes the action defined on the table and/or on the data contained in the table,
based on the flow incoming from the preceding component in the Job.
tMSSqlOutput writes, updates, makes
changes or suppresses entries in a Microsoft SQL Server database or a Microsoft Azure
SQL database.
tMSSqlOutput Standard properties
These properties are used to configure tMSSqlOutput running in the Standard Job framework.
The Standard
tMSSqlOutput component belongs to the Databases family.
The component in this framework is generally available.
Basic settings
|
Property type |
Either Built-in or Repository |
|
|
Built-in: No property data stored |
|
|
Repository: Select the repository |
|
|
Click this icon to open a database connection wizard and store the For more information about setting up and storing database connection |
|
Use an existing connection |
Select this check box and in the Component Note:
When a Job contains the parent Job and the child Job, if you need to share an
existing connection between the two levels, for example, to share the connection created by the parent Job with the child Job, you have to:
For an example about how to share a database connection across Job levels, see |
|
JDBC Provider |
Select the provider of the JDBC driver to be used, either Microsoft (recommended) or Open When using this component with Datasource in Talend Runtime, you need Note that when Microsoft is selected, you |
|
Host |
Database server IP address. |
|
Port |
Listening port number of DB server. |
|
Schema |
Name of the schema. |
|
Database |
Name of the database. |
|
Username and Password |
DB user authentication data. To enter the password, click the […] button next to the |
|
Table |
Name of the table to be written. Note that only one table can be |
|
Action on table |
On the table defined, you can perform one of the following
Default: No operation is carried
Drop and create table: The table is
Create table: The table does not exist
Create table if not exists: The table
Drop table if exists and create: The
Clear table: The table content is
Truncate table: The table content is |
|
Turn on identity insert |
Select this check box to use your own sequence for the identity value |
|
Action on data |
On the data of the table defined, you can perform:
Insert: Add new entries to the table.
Single Insert Query: Add entries to the
Update: Make changes to existing Insert or update: Insert a new record. If Update or insert: Update the record with the
Delete: Remove entries corresponding to
Insert if not exist : Add new entries Warning:
It is necessary to specify at least one Note:
The dynamic schema feature can be used in the |
|
Specify identity field |
Select this check box to specify the identity field, which is made up When this check box is selected, three other fields are displayed:
Identity field: select the column you
Start value: type in a start value,
Step: type in an incremental value, This check box is available only when you select Drop and create table, Create table, Create table if not exists, or Drop table if exists and create from the Action on table list , Note:
You can also specify the identity field from the schema of the Note:
When the Specify identity field |
|
Schema and Edit |
A schema is a row description. It defines the number of fields (columns) to Click Edit schema to make changes to the schema.
This component offers the This dynamic schema |
|
|
Built-In: You create and store the |
|
|
Repository: You have already created When the schema to be reused has default values that are integers or You can find more details about how to verify default |
|
Specify a data source alias |
Select this check box and specify the alias of a data source created on the This check box is not available when the Use an existing |
|
Data source alias |
Enter the alias of the data source created on the This field is available only when the Specify a data source |
|
Die on error |
This check box is selected by default. Clear the check box to skip the |
Advanced settings
|
Additional JDBC parameters |
Specify additional connection properties for the database This field is not available if the Use an existing |
|
Commit every |
Enter the number of rows to be completed before committing batches of |
|
Additional Columns |
This option is not offered if you create (with or without drop) the DB |
|
|
Name: Type in the name of the schema |
|
|
SQL expression: Type in the SQL |
|
|
Position: Select Before, Replace or After |
|
|
Reference column: Type in a column of |
|
Use field options |
Select this check box to customize a request, especially when there is |
|
Ignore date validation |
Select this check box to ignore the date validation and insert the |
|
Enable debug mode |
Select this check box to display each step during processing entries |
|
Support null in “SQL WHERE” statement |
Select this check box if you want to deal with the Null values Note:
Make sure that the Nullable check |
|
Use Batch |
Select this check box to activate the batch mode for data processing. This check box is available only when you have selected the Insert, the Update, the Single Insert Note:
If you select the Single Insert |
|
Batch Size |
Specify the number of records to be processed in each batch.. This field appears only when the Use batch mode |
|
tStatCatcher Statistics |
Select this check box to collect log data at the component |
|
Enable parallel execution |
Select this check box to perform high-speed data processing, by treating multiple data flows
simultaneously. Note that this feature depends on the database or the application ability to handle multiple inserts in parallel as well as the number of CPU affected. In the Number of parallel executions field, either:
Note that when parallel execution is enabled, it is not possible to use global variables to Warning:
|
Global Variables
|
Global Variables |
NB_LINE: the number of rows processed. This is an After
NB_LINE_UPDATED: the number of rows updated. This is an
NB_LINE_INSERTED: the number of rows inserted. This is an
NB_LINE_DELETED: the number of rows deleted. This is an
NB_LINE_REJECTED: the number of rows rejected. This is an
QUERY: the query statement processed. This is an After
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see |
Usage
|
Usage rule |
This component offers the flexibility benefit of the DB query and This component must be used as an output component. It allows you to |
|
Dynamic settings |
Click the [+] button to add a The Dynamic settings table is For examples on using dynamic parameters, see Scenario: Reading data from databases through context-based dynamic connections and Scenario: Reading data from different MySQL databases using dynamically loaded connection parameters. For more information on Dynamic |
| Limitation |
When the Single Insert Query option Due to license incompatibility, one or more JARs required to use this component are not |
Related scenarios
For tMSSqlOutput related topics, see: