By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,157 Members | 891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,157 IT Pros & Developers. It's quick & easy.

ODBC Connection

P: n/a
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
Nov 12 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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" <ja************@hotmail.com> wrote in message
news:ee*************************@posting.google.co m...
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

Nov 12 '05 #2

P: n/a
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" <my***********************@nospam.org> wrote in message news:<bt**********@ngspool-d02.news.aol.com>...
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" <ja************@hotmail.com> wrote in message
news:ee*************************@posting.google.co m...
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

Nov 12 '05 #3

P: n/a
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" <ja************@hotmail.com> wrote in message
news:ee**************************@posting.google.c om...
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" <my***********************@nospam.org> wrote in message

news:<bt**********@ngspool-d02.news.aol.com>...
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" <ja************@hotmail.com> wrote in message
news:ee*************************@posting.google.co m...
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

Nov 12 '05 #4

P: n/a
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
http://www.openlinksw.com
Product Weblogs:
Virtuoso: http://www.openlinksw.com/weblogs/virtuoso
UDA: http://www.openlinksw.com/weblogs/uda
Universal Data Access & Virtual Database Technology

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" <ja************@hotmail.com> wrote in message
news:ee**************************@posting.google.c om...
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" <my***********************@nospam.org> wrote in message

news:<bt**********@ngspool-d02.news.aol.com>...
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" <ja************@hotmail.com> wrote in message
news:ee*************************@posting.google.co m...
> 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


Nov 12 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.