472,127 Members | 1,855 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

connect to AS400 from ASP script

1
I'm trying to create connection to AS400 with this script:
Expand|Select|Wrap|Line Numbers
  1. var ConnectionString = "Provider=MSDASQL;DSN=as400;User Id=user;Password=pwd;";
  2.  
  3. var Conn    = new ActiveXObject("ADODB.Connection")
  4.  
  5. var adoCmd    = new ActiveXObject("ADODB.Command")
  6.  
  7. try{
  8.     Conn.Open(ConnectionString);
  9.  
  10.     adoCmd.ActiveConnection = Conn;
  11. }catch(e){
  12.     Response.Write("0 Error="+e.description);     
  13. }
  14.  
this script hang on the Conn.open line. No error is produced and it seems like the procces is working but can;t establish connection.

Does someone can help?
Sep 8 '07 #1
1 1764
jhardman
3,406 Expert 2GB
this is in ASP.NET using J#?

Jared
Sep 10 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by webhead74 | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.