473,465 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
Nov 12 '05 #1
4 10793
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sean Anderson | last post by:
ODBC under System DSN Setup Access Driver give it the DSN (Data Source Name) MSA Click on Select and point to the myfile.mdb (your database file)
5
by: SerGioGio | last post by:
Hello, I am going nuts. I am trying to connect to my local ORACLE instance using ODBC. It used to work few weeks ago, but it fails now. Connection with: - SQL*plus: connection works! -...
11
by: DJJ | last post by:
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL tables to a Microsoft Access 2003 database. I am finding that the data from the MySQL tables takes a hell of a long time...
14
by: jj | last post by:
Is it possible to call a remote php script from within Access? I'm thinking something like: DoCMD... http://www.domain.com/scripts/dataquery.php DoCmd.OpenQuery "update_data", acNormal, acEdit...
5
by: Alec | last post by:
Hi All, I am currently trying to link in Access 97 to a table in a MSSQL 7 server. Initially the link is fine, however, when I close the access database and re-open it from the same network...
1
by: Paul | last post by:
Hello, I am converting an Access database on our network to a sql 2000 backend and keeping access as the front end. The access database has evolved and been a solution to collect data but now...
4
by: Dave | last post by:
Hey guys, I have an ODBC problem that has me stumped. I wrote a VBA script to run in Microsoft Excel that pulls data out of an application using that application's ODBC driver and puts it into...
9
by: mcbill20 | last post by:
Hello all. I just installed Oracle 10g developer tools on a machine running XP Pro and Office XP. Before this I had just the Oracle 9 client installed. I the previous configuration, I was able to...
8
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query...
2
by: 111mike | last post by:
Hello, Here's my problem. I cannot connect to mysql database using odbc string connections or dns. I keep getting a "cannot connect to mysql server localhost." I'm running windows XP Pro and...
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
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...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.