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 4 10805
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.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
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************ ***********@nos pam.org> wrote in message news:<bt******* ***@ngspool-d02.news.aol.co m>... 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.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
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.goo gle.com... 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************ ***********@nos pam.org> wrote in message
news:<bt******* ***@ngspool-d02.news.aol.co m>... 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.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
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.goo gle.com... 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************ ***********@nos pam.org> wrote in message news:<bt******* ***@ngspool-d02.news.aol.co m>... 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.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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)
|
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!
- DataDirect 5.0 Oracle Wire protocol (3rd party ODBC driver): connection
works when I hit the driver's "test connection"
|
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 to load making any kind linkage
with my Access data virtually useless.
I have the MySQL driver setup in as a USER DSN. The MySQL data is...
|
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
.....
So the PHP script does something on the server database, then when a linked
table is viewed within access, the data changes have been made?
|
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 lacation on a different
machine, it tells me that the ODBC connection to 'SQL Server Name'
failed.
How can I create the linked table permenant no...
| |
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 we want to move
the tables over to sql 2000. We have successfully done that but are
now having difficulties with an ODBC connection. Initiall...
|
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 Excel. I am
trying to translate the same program over to Microsoft Access and I ran
into a problem. Access locks up if the data I am querying for is...
|
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 access
any of the Oracle tables on another machine but now I am having
problems. Unfortunately, I don't remember the correct syntax for the
ODBC...
|
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 work from
|
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 have installed IIS as my server. I have installed Mysql 5.0 and mysql ODBC driver 3.51.12 in their default locations. Database is up and running...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |