Component family |
Databases/OleDb |
|
Function |
This component reads a database and extracts fields based on a query. It offers the |
|
Purpose |
This component executes a DB query with a strictly defined order which must correspond |
|
Basic settings |
Connection URL |
Enter the connection string used to open the database. For details, please see http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbconnection.connectionstring.aspx. |
|
Schema and Edit |
A schema is a row description. It defines the number of fields to be processed and passed on Since version 5.6, both the Built-In mode and the Repository mode are |
|
|
Built-In: You create and store the schema locally for this |
|
|
Repository: You have already created the schema and |
Click Edit schema to make changes to the schema. If the
|
||
|
Table Name |
Enter the name of the table to be processed. |
|
Query Type |
Select either Built-in or Repository query type from the drop-down Since version 5.6, both the Built-In mode and the Repository mode are |
|
|
Built-in: Fill in manually the query statement or |
|
|
Repository: Select the relevant query stored in the |
|
Guess Query |
Click the button to generate the query which corresponds to the defined table schema in |
|
Guess schema |
Click the button to retrieve the schema from the table. |
|
Query |
Specify the database query paying particularly attention to properly sequence the |
Advanced settings |
Trim all the String/Char columns |
Select this check box to remove leading and trailing whitespace from all the |
|
Trim column |
Select the check box in Trim column to remove leading This field appears only when the Trim all |
|
tStatCatcher Statistics |
Select this check box to collect log data at the component |
Global Variables |
NB_LINE: the number of rows processed. This is an After
QUERY: the SQL query statement being processed. This is a 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 Talend Studio |
|
Usage |
This component is used as a start component in a Job and it always needs an output |
|
Log4j |
The activity of this component can be logged using the log4j feature. For more information on this feature, see Talend Studio User For more information on the log4j logging levels, see the Apache documentation at http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html. |
For similar scenarios, see tMysqlInput.