5 replies
by salexru2000
If you defined DSN to be able to access AS400, you will need to specify in the connection string only Data Source, which must name your DSN. In this case neither catalog, neither prov. string and other parms are required (all will be taken from DSN).
Hope this helps
by shanghai sam
by rrv
Better than using DSN use provider string. If you use Client access express driver to connect to AS/400 then the connection string in VB would be like this.
public Con400 as new ADODB.Connection
Con400.open "Provider=IBMDA400;Data Source=AS400ServerNameAsinOperationNavigator;"
and that is it. if you want to prompt for AS/400 security login screen everytime use Con400.BeginTrans property.
To get extended connection string data follow the below procedure.
1) Use the above string to connect.
2) Execute the code in step by step in VB.
3) After executing the connection string's Open statement, go to immediate window and print the connection string like this
?Con400.ConnectionString
This will give the full connection string parameters. Then you can copy that string to the actual connection string in your code and change the parameters like Timeout, Userid, Password, etc etc.
For more queries contact me at rvenkatesh@dubal.co.ae
All the best.
by shanghai sam
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending