Home
SQL Image Viewer online help Prev Page Prev Page
Introduction
About SQL Image Viewer
Version history
Contact us
User Guide
System requirements
Editor command selection
Exporting large number of images
Folders and files
Reference Guide
Main menu
Connect to Database
Connecting to Firebird databases
Connecting to MySQL databases
Connecting to Oracle databases
Connecting to SQLite databases
Connecting to SQL Server databases
Connecting using ODBC
Connecting to a DB2 database
Connecting to a PostgreSQL database
Options
General options
Editor options
Thumbnail options
Image view
Check for updates
About
The work area
SQL editor
Table browser
Results
Other binary data
Image viewer
Hex viewer
Export items wizard
Exporting Microsoft Access OLE data
Image options
File naming convention
Datetime format specifiers
Command line interface
Parameters, logs and exit codes
Advanced options
CROP option
Troubleshooting
Expired trial
Invalid licenses
Unidentified images or binary data

Connecting to a DB2 database

SQL Image Viewer supports DB2 databases via the use of the DB2 ODBC driver. You can download the latest driver using this URL (at time of writing): http://www-01.ibm.com/support/docview.wss?rs=71&uid=swg21255394#r4

When setting up the ODBC driver, it is important to provide a value for the 'BlockForNRows
' parameter, so that images are retrieved on demand. This is especially important when exporting images. If this option is not set, the ODBC driver will retrieve all the images from the database before saving them to disk, which consumes a lot of system memory. When this option is set, the ODBC driver retrieves the images in batches, on demand.

Enter a value to limit the number of rows that the ODBC driver will fetch every time data is retrieved from the server. You can start off with a value of 10, and increase it if you want better performance at the cost of using more memory, or reduce the value if your system memory is inadequate to hold that number of rows in memory.

connect-db2-01