Solved

Create ODBC Connection Systematically for AS400

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Do Functions perform better than dynamic (inline) SQL in PostgreSQL? 3 124
business objects to connect to MSSQL 6 74
constraint check 2 40
SQL SELECT query help 7 38
In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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…

773 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