![]() | ![]() |
Home |
|
|
Access Service User's Guide DirectConnect for AS/400 |
|
| Chapter 10 Using Bulk Copy Transfer |
|
| Datatype conversion for transfer from statements |
Use transfer from when you want to transfer data from a secondary database, either Adaptive Server or another database through another access service, to the primary database. The primary database, the AS/400, is the target and is implied in the transfer statement; the secondary and source database is specified in the transfer statement.
The following figure shows the data flow of one of the preceding transfer from examples, which transfers data from sstable3 in Adaptive Server to replace data in the AS/400 table named as4table1.
Figure 10-1: AS/400 bulk copy transfer from statement
The access service performs datatype conversions for bulk copy transfer from statements. These conversions are defined within the access service and are not affected by the settings of the datatype conversion configuration properties. The access service converts these datatypes into the actual datatypes of the target columns. If the access service cannot convert the columns, an error occurs. For information about errors, see "Transfer errors and error handling" and "Errors from data values" .
The following table shows the acceptable Open Server datatypes that the access service can convert into corresponding AS/400 datatypes. To save space, the CS_ prefix is removed from Open Server datatypes, and similar AS/400 datatypes are combined.
From Open Server Datatypes (below) | To AS/400 Datatypes (across) | ||||
CHAR, VARCHAR | INT, SMALLINT | DECIMAL, FLOAT, REAL | DATE, TIME, TIMESTAMP | CHAR FOR BIT, DATA, VARCHAR FOR BIT DATA | |
CHARACTER DATATYPES | |||||
CHAR | X | X | X | X | X |
VARCHAR | X | X | X | X | X |
TEXT | X | X | X | X | X |
BINARY DATATYPES | |||||
BINARY | X | X | |||
VARBINARY | X | X | |||
IMAGE | X | X | |||
NUMERIC DATATYPES | |||||
BIT | X | X | X | ||
SMALLINT | X | X | X | ||
INTEGER | X | X | X | ||
DECIMAL | X | X | X | ||
MONEY | X | X | X | ||
MONEY4 | X | X | X | ||
REAL | X | X | X | ||
FLOAT | X | X | X | ||
DATE DATATYPES | |||||
DATETIME | X | X | |||
DATETIME4 | X | X |
|
|