Data Access Worldwide Knowledge Base

Article ID 2252
Article Title HOWTO: Register your DB2 database in ODBC
Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2252
KBase Category CONNECTIVITY KITS
Date Created 10/17/2006
Last Edit Date 10/17/2006


Article Text
If your database is not registered in ODBC, you will not see your database listed in the ODBC Administrator and you will not be able to use either the ODBC Administrator or the Configuration Assistant (CA) to configure the CLI parameters of your database.

Being able to set your parameters using such interface makes it easier -- and less susceptible of errors.


The first thing to do is to check if your database is not registered already:

Using ODBC Administrator
- Open the ODBC Administrator on the client machine
- Look for the database name in the DSN tabs

Using the Configuration Assistant (DB2 8 and 9)
- Start the Configuration Assistant (CA)
- Check if the column "ODBC Registered" for that database says "Yes". If it does, you will be able to change CLI parameters using CA. If it is set to "No", you will need to change the database.

Then, if you really need to register your database, you should do the following:
- Start the Configuration Assistant (CA)
- Right-click on the name of the database you want to configure
- Select "Change Database"
- Click on the Data Source button
- Check the "Register this database for CLI/ODBC" checkbox
  . Configure the datasource as you need
- Click on Finish

The "ODBC Registered" for that database should now say "Yes".


Contributed By:
Marcia Booth
Company: Data Access Worldwide
Web Site: http://www.dataaccess.com


Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.

The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.