ODBC Connector > Mappings and mapping tasks with ODBC Connector > ODBC lookups in mappings
  

ODBC lookups in mappings

You can create lookups for objects in ODBC connection. You can retrieve data from an ODBC lookup object based on the specified lookup condition.
When you configure a lookup in ODBC, you select the lookup connection and lookup object. You also define the behavior when a lookup condition returns more than one match.
The following table describes the ODBC lookup object properties that you can configure in a Lookup transformation:
Lookup Object Properties
Description
Connection
Name of the lookup connection.
You can select an existing connection, create a new connection, or define parameter values for the lookup connection property.
If you want to overwrite the lookup connection properties at runtime, select the Allow parameter to be overridden at run time option.
Specify the parameter file directory and name in the advanced session properties.
Source Type
Type of the ODBC lookup object available.
Select one of the following lookup object types:
  • - Single Object
  • - Query
  • - Parameter
When the lookup source is large, you can use a custom query to reduce the number of columns to query.
Lookup Object
Name of the lookup object for the mapping.
Parameter
The parameter for the lookup object. Create or select the parameter for the lookup object.
Note: The parameter property appears only if you select parameter as the source type.
Multiple Matches
Select one of the following options:
  • - Error, if more than 1 output value
  • - Randomly pick 1 output value
If you want to overwrite the parameter at runtime, select the Allow parameter to be overridden at run time option.
When the task runs, the Secure Agent uses the parameters from the file that you specify in the advanced session properties.
Filter
Not applicable.
Sort
Not applicable.
SQL Override
The SQL statement to override the default query that creates lookup data from an ODBC source.