User`s guide
xv
Importing Data Using the fetch Function . . . . . . . . . . . . . . 6-48
About the fetch Function . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-48
fetch Workflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-48
Using fetch with a Cursor Object . . . . . . . . . . . . . . . . . . . . 6-49
Using fetch with Cursor and Database Connection Objects . 6-50
Database Consideration . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-51
Fetch Data Incrementally Using the Cursor Object . . . . . . 6-52
Display Information About Imported Data . . . . . . . . . . . . . 6-55
Importing Data Using a Scrollable Cursor . . . . . . . . . . . . . . 6-58
About Scrollable Cursors . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-58
Differences Between Native ODBC and JDBC Scrollable
Cursors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-59
Import Data Using a Scrollable Cursor with a Relative
Position Offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-65
Inserting Data Using the fastinsert Function . . . . . . . . . . . 6-68
About the fastinsert Function . . . . . . . . . . . . . . . . . . . . . . . 6-68
Database Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-69
Retrieving Object Properties Using the get Function . . . . . 6-70
Database Connection Objects . . . . . . . . . . . . . . . . . . . . . . . 6-70
Cursor Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-71
Driver Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-72
Database Metadata Objects . . . . . . . . . . . . . . . . . . . . . . . . . 6-72
Drivermanager Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-73
Resultset Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-73
Resultset Metadata Objects . . . . . . . . . . . . . . . . . . . . . . . . . 6-73
Setting Database Preferences Using the setdbprefs
Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-75
About the setdbprefs Function . . . . . . . . . . . . . . . . . . . . . . 6-75
Allowable Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-75
Working with a DatabaseDatastore . . . . . . . . . . . . . . . . . . . . 6-79
About DatabaseDatastore Objects . . . . . . . . . . . . . . . . . . . . 6-79
Advantages of DatabaseDatastore Objects Over Basic
Fetching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-79
Import Data Using a DatabaseDatastore . . . . . . . . . . . . . . . 6-81