How to connect from IIS to IBM DB2 mainframe

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default How to connect from IIS to IBM DB2 mainframe

    Could someone tell me step by step what to do to make a
    connection to DB2.

    I have to write an application which will display DB2 data
    on the web.
    My experience level is 5 years with classic ASP & one
    month with ASP.net.

    I understand that I have to use ADO.net. But after that I
    am lost.

    I would think that you have to get the DB2 driver (not
    sure where you get it)
    Then put it on IIS.

    Then what do you do?

    Thank you in advance

    Guest

  2. Similar Questions and Discussions

    1. Web form to reset password on both mainframe and windows environment using LDAP
      The LDAP is located on the mainframe. I can successfully select records using some ASP (Classic) script. I choose to use ASP classic because...
    2. Seeking Namespace Advice (MVS OS/390 Mainframe Util.)
      I'm just about to finish up a module that someone might find useful. It emulates two utilities found on IBM Mainframes, IEBUPDTE and IEBPTPCH. ...
    3. oracle on mainframe
      We are upgrading our cf server to mx 7 and oarcle 7 to oracle 9i. our unix admin wants to install oracle on mainframe. Can someone tell me the pros...
    4. How to use “RDS.Connect” to connect to a MS Access database?
      The example I am working from uses the following code which does not work: RDS.Connect = "Provider='sqloledb';Integrated Security='SSPI';Initial ...
    5. LU 6.2 Connection to mainframe (Need Solaris Software Recommencation)
      Hello, We are looking to install a product on our Sun server to support peer-to-peer application communication between our Solairs 8...
  3. #2

    Default Re: How to connect from IIS to IBM DB2 mainframe

    <anonymous@discussions.microsoft.com> wrote in message
    news:04c901c3cdd1$171ad800$a101280a@phx.gbl...
    > Could someone tell me step by step what to do to make a
    > connection to DB2.
    >
    > I have to write an application which will display DB2 data
    > on the web.
    > My experience level is 5 years with classic ASP & one
    > month with ASP.net.
    >
    > I understand that I have to use ADO.net. But after that I
    > am lost.
    >
    > I would think that you have to get the DB2 driver (not
    > sure where you get it)
    > Then put it on IIS.
    >
    > Then what do you do?
    >
    > Thank you in advance
    >

    Perhaps,

    [url]http://www.connectionstrings.com/[/url]


    McKirahan Guest

  4. #3

    Default Re: How to connect from IIS to IBM DB2 mainframe

    On Sun, 28 Dec 2003 22:00:41 -0800,
    <anonymous@discussions.microsoft.com> wrote:
    >Could someone tell me step by step what to do to make a
    >connection to DB2.
    What *kind* of connection?
    >I have to write an application which will display DB2 data
    >on the web.
    >My experience level is 5 years with classic ASP & one
    >month with ASP.net.
    Which would you like to use?
    >I understand that I have to use ADO.net. But after that I
    >am lost.
    You don't have to, but it works.
    >I would think that you have to get the DB2 driver (not
    >sure where you get it)
    Well, this one is likely too obvious -- IBM. :)

    We've been using an ODBC connection, with the driver from IBM's Client
    Access.
    >Then put it on IIS.
    Um, no. You use an ODBC connection to DB2, or an OLEDB connection.
    Check some of the connection string options here:

    [url]http://www.able-consulting.com/ADO_Conn.htm[/url]
    >Then what do you do?
    Write the code to access the DB2 database in whatever manner you need.
    This is exactly the same as accessing any other database such as
    Access or MS-SQL, though you do have the IBM security to attend to
    (assuming you run DB2 on an AS/400, System 390, etc.).

    Jeff
    Jeff Cochran Guest

  5. #4

    Default Re: How to connect from IIS to IBM DB2 mainframe

    I use the OLEDB driver from IBM Client Access. On my webserver, I only
    installed the driver though, and any necessary components. There isn't any
    need to install the emulator and all the other nonsense. After that, it's
    just a matter of building a connection string and treating the connection
    like any other data source, for the most part. A sample connection string:

    sDB2String = "Provider=IBMDA400.DataSource.1;Persist Security
    Info=False;User ID=AnAS400UserID;Password=ValidPassword;Data
    Source=HOST_NAME_OR_AS_400_IP_ADDRESS;Catalog Library
    List=LIBRARY1,LIBRARY2,LIBRARY3"

    Ray at work


    <anonymous@discussions.microsoft.com> wrote in message
    news:04c901c3cdd1$171ad800$a101280a@phx.gbl...
    > Could someone tell me step by step what to do to make a
    > connection to DB2.
    >
    > I have to write an application which will display DB2 data
    > on the web.
    > My experience level is 5 years with classic ASP & one
    > month with ASP.net.
    >
    > I understand that I have to use ADO.net. But after that I
    > am lost.
    >
    > I would think that you have to get the DB2 driver (not
    > sure where you get it)
    > Then put it on IIS.
    >
    > Then what do you do?
    >
    > Thank you in advance
    >

    Ray at Guest

  6. #5

    Default Re: How to connect from IIS to IBM DB2 mainframe

    Hi there,

    Pretty simple, you will need an ODBC driver for DB2 (ie StarSQL, check
    [url]www.starquest.com[/url]) and then define an ODBC data source that you will
    use to connect your application to DB2. The data source will include
    all the info you need to connect to DB2 (DB2 name, IP address of the
    host etc...).

    Hope this helps.

    Good luck!

    Bob

    [email]jcochran.nospam@naplesgov.com[/email] (Jeff Cochran) wrote in message news:<3ff02f09.605178009@msnews.microsoft.com>...
    > On Sun, 28 Dec 2003 22:00:41 -0800,
    > <anonymous@discussions.microsoft.com> wrote:
    >
    > >Could someone tell me step by step what to do to make a
    > >connection to DB2.
    >
    > What *kind* of connection?
    >
    > >I have to write an application which will display DB2 data
    > >on the web.
    > >My experience level is 5 years with classic ASP & one
    > >month with ASP.net.
    >
    > Which would you like to use?
    >
    > >I understand that I have to use ADO.net. But after that I
    > >am lost.
    >
    > You don't have to, but it works.
    >
    > >I would think that you have to get the DB2 driver (not
    > >sure where you get it)
    >
    > Well, this one is likely too obvious -- IBM. :)
    >
    > We've been using an ODBC connection, with the driver from IBM's Client
    > Access.
    >
    > >Then put it on IIS.
    >
    > Um, no. You use an ODBC connection to DB2, or an OLEDB connection.
    > Check some of the connection string options here:
    >
    > [url]http://www.able-consulting.com/ADO_Conn.htm[/url]
    >
    > >Then what do you do?
    >
    > Write the code to access the DB2 database in whatever manner you need.
    > This is exactly the same as accessing any other database such as
    > Access or MS-SQL, though you do have the IBM security to attend to
    > (assuming you run DB2 on an AS/400, System 390, etc.).
    >
    > Jeff
    DB2 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139