This step includes all the initialization and connection processes an
application must follow to create an active connection to a data source. Initializing of
the ODBC environment and connecting to a data source takes place in six sub-steps:
Allocate an environment handle.
Declare the application ODBC version and set any other environment
attributes.
Allocate a connection handle and set any pre-connection attributes.