473,392 Members | 1,487 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,392 software developers and data experts.

connect to AS400 from ASP script

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;";
  3. var Conn    = new ActiveXObject("ADODB.Connection")
  5. var adoCmd    = new ActiveXObject("ADODB.Command")
  7. try{
  8.     Conn.Open(ConnectionString);
  10.     adoCmd.ActiveConnection = Conn;
  11. }catch(e){
  12.     Response.Write("0 Error="+e.description);     
  13. }
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 1847
3,406 Expert 2GB
this is in ASP.NET using J#?

Sep 10 '07 #2

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

Similar topics

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...
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...
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...
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...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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...
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...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.