Solved

Create ODBC Connection Systematically for AS400

Posted on 2006-07-18
2
534 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 500 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

Webinar: Security & Encryption in the MySQL world

Join Percona’s Solutions Engineer, Dimitri Vanoverbeke as he presents “Security and Encryption in the MySQL world” on Thursday, July 6, 2017 at 7:00 am PDT / 10:00 am EDT (UTC-7).

Question has a verified solution.

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

Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Recently I was talking with Tim Sharp, one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. While doing some quick training with some of the Percona team, Tim brought something to my attention...
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

726 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