Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Create ODBC Connection Systematically for AS400

Posted on 2006-07-18
2
Medium Priority
?
542 Views
Last Modified: 2006-11-18
Hi Experts:
I have in the past asked a question as to how to systematically with the module to create an ODBS connection to SQL backend but now
I need the same approach to create odbc for the as400. Current driver installed "Client Access ODBC Driver (32-bit)"
I want to be able to set the odbc connection setting through a module. Some setting are as follows that needs to be change:

1. Data srource name
2. Description
3. AS/400 System (name of the server)
4. Naming convention "SQL naming convention (*SQL)
5. SQL default library
6. Library list
7. Connection type: "read/write (all SQL statement allowed) etc.

Thanks
0
Comment
Question by:proudpaki9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Accepted Solution

by:
Sham Haque earned 1500 total points
ID: 17136924
IBM Client Access ODBC driver:

"Driver={Client Access ODBC Driver (32-bit)};System=my_system_name;Uid=myUserName;Pwd=myPwd"

this is all you need to estabish a (ODBC) connnection to your AS400.

Alternatively, you can use OLE connections:
 IBM Client Access OLE DB provider:

"PROVIDER=IBMDA400; DATA SOURCE=MY_SYSTEM_NAME;USER ID=myUserName;PASSWORD=myPwd"
Where MY_SYSTEM_NAME is the name given to the system connection in OperationsNavigator
 IBM Client Access OLE DB provider:

"PROVIDER=IBMDA400; DATA SOURCE=MY_SYSTEM_NAME;USER ID=myUserName;PASSWORD=myPwd;DEFAULT COLLECTION=MY_LIBRARY;"
Where MY_SYSTEM_NAME is the name given to the System Connection, and MY_LIBRARY is the name given to the library in iSeries Navigator.


ref: http://www.connectionstrings.com
0
 

Author Comment

by:proudpaki9
ID: 17139211
Will this create an odbc connection in the odbc administration container??

Thanks
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question