ODBC Connection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jacob Pallapati

    ODBC Connection

    Hi,

    I need to create an ODBC connection for one of my databases from the
    command line. I could use db2 catalog system odbc database source
    <my-database>. But I want to create a DSN with a name different from
    the name of the database. For instance if my database name is SAMPLE i
    want to create a dsn with name sample_database . Please let me know if
    there is a way to do this from the command line. As far as I can see
    db2 catalog command does not allow me to do this. Any help will be
    appreciated.

    Thanks,
    Jacob
  • Mark Yudkin

    #2
    Re: ODBC Connection

    Use the Data Sources (ODBC) Administrative Tool in the Windows 2K / XP
    Administration folder (NT4: Control Panel).

    There is no command line tool that allows access to all of the parameters.
    The ODBC SETUP API makes it easy to do so. Also, when you prepare your
    application for distribution, installer generators such as InstallShield and
    WISE make ODBC cataloguing trivial.

    "Jacob Pallapati" <jacobpallapati @hotmail.com> wrote in message
    news:ee4d86ce.0 401080711.80ea6 44@posting.goog le.com...[color=blue]
    > Hi,
    >
    > I need to create an ODBC connection for one of my databases from the
    > command line. I could use db2 catalog system odbc database source
    > <my-database>. But I want to create a DSN with a name different from
    > the name of the database. For instance if my database name is SAMPLE i
    > want to create a dsn with name sample_database . Please let me know if
    > there is a way to do this from the command line. As far as I can see
    > db2 catalog command does not allow me to do this. Any help will be
    > appreciated.
    >
    > Thanks,
    > Jacob[/color]


    Comment

    • Jacob Pallapati

      #3
      Re: ODBC Connection

      Hi Mark,

      Thank you very much for the response. I am actually trying to catalog
      the database from InstallShield. I am new to db2 and do not know how
      to catalog the database, except using the db2 catalog command. Can you
      tell me how this can be done. Also is there a way to register odbc
      connections on systems not having db2. I know that I will need to
      install the drivers some how. I do not want to install even the run
      time clients on these machines.

      Thanks,
      Jake

      "Mark Yudkin" <myudkinATcompu serveDOTcom@nos pam.org> wrote in message news:<btloc8$gv d$1@ngspool-d02.news.aol.co m>...[color=blue]
      > Use the Data Sources (ODBC) Administrative Tool in the Windows 2K / XP
      > Administration folder (NT4: Control Panel).
      >
      > There is no command line tool that allows access to all of the parameters.
      > The ODBC SETUP API makes it easy to do so. Also, when you prepare your
      > application for distribution, installer generators such as InstallShield and
      > WISE make ODBC cataloguing trivial.
      >
      > "Jacob Pallapati" <jacobpallapati @hotmail.com> wrote in message
      > news:ee4d86ce.0 401080711.80ea6 44@posting.goog le.com...[color=green]
      > > Hi,
      > >
      > > I need to create an ODBC connection for one of my databases from the
      > > command line. I could use db2 catalog system odbc database source
      > > <my-database>. But I want to create a DSN with a name different from
      > > the name of the database. For instance if my database name is SAMPLE i
      > > want to create a dsn with name sample_database . Please let me know if
      > > there is a way to do this from the command line. As far as I can see
      > > db2 catalog command does not allow me to do this. Any help will be
      > > appreciated.
      > >
      > > Thanks,
      > > Jacob[/color][/color]

      Comment

      • Mark Yudkin

        #4
        Re: ODBC Connection

        Allk versions of Installshield have native ODBC Setup API support. I don't
        know which version of InstallSheld you're using, but in all cases, I'm sure
        the InstallShield online help will be quite capable of answering your
        questions. There is almost nothing DB2 specific about it, and if you
        catalogue the ODBC database on your development system, you can just
        drag-and-drop the settings into your InstallShield setup. If you have any
        further questions on using InstallShield, I suggest you try their online
        help, web site, knowledgebase and/or forums for the particular version
        you're using.

        As for the DB2 run-time client, these are required for DB2 access; either
        you install it, or you look for a third party equivalent. Without a DB2 ODBC
        driver there is no DB2 access. The IBM runtime client is probably your
        simplest option, as it comes with the product.

        "Jacob Pallapati" <jacobpallapati @hotmail.com> wrote in message
        news:ee4d86ce.0 401121029.28664 1bd@posting.goo gle.com...[color=blue]
        > Hi Mark,
        >
        > Thank you very much for the response. I am actually trying to catalog
        > the database from InstallShield. I am new to db2 and do not know how
        > to catalog the database, except using the db2 catalog command. Can you
        > tell me how this can be done. Also is there a way to register odbc
        > connections on systems not having db2. I know that I will need to
        > install the drivers some how. I do not want to install even the run
        > time clients on these machines.
        >
        > Thanks,
        > Jake
        >
        > "Mark Yudkin" <myudkinATcompu serveDOTcom@nos pam.org> wrote in message[/color]
        news:<btloc8$gv d$1@ngspool-d02.news.aol.co m>...[color=blue][color=green]
        > > Use the Data Sources (ODBC) Administrative Tool in the Windows 2K / XP
        > > Administration folder (NT4: Control Panel).
        > >
        > > There is no command line tool that allows access to all of the[/color][/color]
        parameters.[color=blue][color=green]
        > > The ODBC SETUP API makes it easy to do so. Also, when you prepare your
        > > application for distribution, installer generators such as InstallShield[/color][/color]
        and[color=blue][color=green]
        > > WISE make ODBC cataloguing trivial.
        > >
        > > "Jacob Pallapati" <jacobpallapati @hotmail.com> wrote in message
        > > news:ee4d86ce.0 401080711.80ea6 44@posting.goog le.com...[color=darkred]
        > > > Hi,
        > > >
        > > > I need to create an ODBC connection for one of my databases from the
        > > > command line. I could use db2 catalog system odbc database source
        > > > <my-database>. But I want to create a DSN with a name different from
        > > > the name of the database. For instance if my database name is SAMPLE i
        > > > want to create a dsn with name sample_database . Please let me know if
        > > > there is a way to do this from the command line. As far as I can see
        > > > db2 catalog command does not allow me to do this. Any help will be
        > > > appreciated.
        > > >
        > > > Thanks,
        > > > Jacob[/color][/color][/color]


        Comment

        • Netrista Khatam

          #5
          Re: Re: ODBC Connection

          Hello Jacob,
          If you cannot guarantee the presence of the DB2 native client (DB2 connect) on each client machine, consider OpenLink Software (www.openlinksw.com). OpenLink builds a suite of Multi-Tier ODBC drivers. These drivers speak to DB2 via the local CLI on the database server. They are not wire protocol drivers. Instead, you must install one server component on the database server and client components on each of the relevant machines.
          Netrista Khatam
          Technical Services Manager
          OpenLink Software

          Product Weblogs:
          Virtuoso: http://www.openlinksw.com/weblogs/virtuoso
          UDA: http://www.openlinksw.com/weblogs/uda
          Universal Data Access & Virtual Database Technology

          [color=blue]
          > Allk versions of Installshield have native ODBC Setup API support. I don't
          > know which version of InstallSheld you're using, but in all cases, I'm sure
          > the InstallShield online help will be quite capable of answering your
          > questions. There is almost nothing DB2 specific about it, and if you
          > catalogue the ODBC database on your development system, you can just
          > drag-and-drop the settings into your InstallShield setup. If you have any
          > further questions on using InstallShield, I suggest you try their online
          > help, web site, knowledgebase and/or forums for the particular version
          > you're using.
          >
          > As for the DB2 run-time client, these are required for DB2 access; either
          > you install it, or you look for a third party equivalent. Without a DB2 ODBC
          > driver there is no DB2 access. The IBM runtime client is probably your
          > simplest option, as it comes with the product.
          >
          > "Jacob Pallapati" <jacobpallapati @hotmail.com> wrote in message
          > news:ee4d86ce.0 401121029.28664 1bd@posting.goo gle.com...[color=green]
          > > Hi Mark,
          > >
          > > Thank you very much for the response. I am actually trying to catalog
          > > the database from InstallShield. I am new to db2 and do not know how
          > > to catalog the database, except using the db2 catalog command. Can you
          > > tell me how this can be done. Also is there a way to register odbc
          > > connections on systems not having db2. I know that I will need to
          > > install the drivers some how. I do not want to install even the run
          > > time clients on these machines.
          > >
          > > Thanks,
          > > Jake
          > >
          > > "Mark Yudkin" <myudkinATcompu serveDOTcom@nos pam.org> wrote in message[/color]
          > news:<btloc8$gv d$1@ngspool-d02.news.aol.co m>...[color=green][color=darkred]
          > > > Use the Data Sources (ODBC) Administrative Tool in the Windows 2K / XP
          > > > Administration folder (NT4: Control Panel).
          > > >
          > > > There is no command line tool that allows access to all of the[/color][/color]
          > parameters.[color=green][color=darkred]
          > > > The ODBC SETUP API makes it easy to do so. Also, when you prepare your
          > > > application for distribution, installer generators such as InstallShield[/color][/color]
          > and[color=green][color=darkred]
          > > > WISE make ODBC cataloguing trivial.
          > > >
          > > > "Jacob Pallapati" <jacobpallapati @hotmail.com> wrote in message
          > > > news:ee4d86ce.0 401080711.80ea6 44@posting.goog le.com...
          > > > > Hi,
          > > > >
          > > > > I need to create an ODBC connection for one of my databases from the
          > > > > command line. I could use db2 catalog system odbc database source
          > > > > <my-database>. But I want to create a DSN with a name different from
          > > > > the name of the database. For instance if my database name is SAMPLE i
          > > > > want to create a dsn with name sample_database . Please let me know if
          > > > > there is a way to do this from the command line. As far as I can see
          > > > > db2 catalog command does not allow me to do this. Any help will be
          > > > > appreciated.
          > > > >
          > > > > Thanks,
          > > > > Jacob[/color][/color]
          >
          >[/color]

          Comment

          Working...