Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
Destination |
Required |
Not available |
Select a global resource.
- [Add]:
Add a new global resource.
- [Edit list]:
Global resource settings can be edited in “Edit resource list” screen.
|
|
SQL statement |
Required |
Available |
Enter the SQL statement to be issued to the database. |
- Disabled when [Destination] is not set or invalid.
“SQL Parameter” can be used.
-
SQL statements that does not return anything, such as INSERT, UPDATE, DELETE, or DDL, can be specified.
-
You cannot specify SQL statement joined with multiple queries.
- When a SQL parameter is not included in [SQL statement], executeUpdate() method of java.sql.Statement class will be executed, and when a SQL parameter is not included, executeUpdate() method, or addBatch() and executeBatch() method of java.sql.PreparedStatement class will be executed.
For more details on the executable SQL statements other than the mentioned above, inquire the database vendor.
- The upper limit of the input value size is about 60,000 bytes. However, when there is a size limitation in the destination database or the JDBC driver, the limitation will be the upper limit.
|
Schema definition |
Optional |
- |
Configure SQL parameters specified in [SQL Statement]. |
- Not displayed when a SQL parameter is not used in [SQL statement].
- The column names displayed in [Schema definition] will be displayed in the Mapper schema.
|
Schema definition/Column name |
Required |
Not available |
Set the SQL parameter name. |
- Not displayed when a SQL parameter is not used in [SQL statement].
|
Schema definition/Type |
Required |
Not available |
Select the type of SQL parameter. |
- Not displayed when a SQL parameter is not used in [SQL statement].
- It is displayed in “<Native type> (<Internal data type>)” format.
- Native type:
RDBMS specific data type.
- Internal data type:
Data type used internally within DataSpider.
Refer to “Internal Data Types” for more details.
|
Component variable name |
Description |
Remarks |
count |
The number of updated data is stored. |
- Default value is null.
The number of input data is stored in batch update processing.
Example: When multiple data are updated with one input data record, then 1 is stored in count. Even when it is not updated, the number of input data is stored.
|
error_code |
When an error (SQLException) occurs, the corresponding error code is stored. |
- Default value is null.
- 0 is stored when finishing normally.
Error code is based on each driver specifications.
|
message_category |
When an error occurs, the corresponding message code's category is stored. |
|
message_code |
When an error occurs, the corresponding message code is stored. |
|
message_level |
When an error occurs, the corresponding message code's severity is stored. |
|
error_type |
When an error occurs, the error type is stored. |
- Default value is null.
- The error type will be in the following format.
Example: “java.io.FileNotFoundException”
The contents that will be stored may vary depending on DataSpider Servista versions.
|
error_message |
When an error occurs, the error message is stored. |
- Default value is null.
The contents that will be stored may vary depending on DataSpider Servista versions.
|
error_trace |
When an error occurs, the error's trace information is stored. |
- Default value is null.
The contents that will be stored may vary depending on DataSpider Servista versions and client applications.
|
Exception name |
Cause |
Solution |
ResourceNotFoundException Resource definition is not found. Name: [] |
[Destination] is not specified. |
Specify [Destination]. |
ResourceNotFoundException Resource definition is not found. Name: [<global resource name>] |
The resource definition selected in [Destination] is not found. |
Check the global resource specified in [Destination]. |
InvalidPropertyConfigurationException |
[SQL statement] is not set. |
Specify [SQL Statement]. |
java.sql.SQLException |
A database access error or some other one has occurred. |
Check the SQLException message. SQLException message is based on the specifications of the driver. The cause of the error might be output in SQLException message.
For more details on messages, contact the database vendor. |