473,422 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,422 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 1848
jhardman
3,406 Expert 2GB
this is in ASP.NET using J#?

Jared
Sep 10 '07 #2

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

Similar topics

4
by: Scott Holland | last post by:
HELP - Need to connect to DB2 database on AIX from NT server. Also AS/400 from NT Server -- I am experienced in ORACLE and a novice at DB2. What tools would be the equivalent of Net*8 or...
0
by: webhead74 | last post by:
Hello, I'm wondering if any of you have experience accessing data from an AS400 via DB2 connect / ODBC on an Intel box? I'm writing a PHP app to access data on the AS400. I've cataloged the...
0
by: fahrvergnuugen | last post by:
Here's the situation: I'm trying to get DB2 Connect, running on a linux web server, to connect to a backend DB2 database, running on an iSeries AS400. I am 100% green when it comes to AS400s...
6
by: Al G | last post by:
Can someone tell me what I need to get connected to our AS400? I am trying to write an app in VS2005(Data source, Gridview) that requires data from files on our AS400. I've downloaded DB2, and...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.