473,385 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

CLI without ODBC

Hi all,
I'm developing a C++ application that needs to communicate with DB2. It
seems that the only way to do that, according to the IBM documentation,
is with the CLI API.

The problem with this API is that it needs an ODBC datasource to be
configured, and I want to avoid this because it makes the installation
of my product to be more complicated, and I cannot switch between
databases within the same instance the way that the CLP enable.

1) Is there another API to communicate with database in C++ beside CLI
?
2) Is there a way to work with CLI without configuring datasource ( I
know that the CLP does not require configuration of datasource) ?
3) Is it possible to switch between databases in the same instance
using CLI without configuring multiple datasources?
TIA,
Yaron

Jan 23 '06 #1
1 1360
st*******@gmail.com wrote:
Hi all,
I'm developing a C++ application that needs to communicate with DB2. It
seems that the only way to do that, according to the IBM documentation,
is with the CLI API.
Then you have missed completely the description of embedded SQL.
The problem with this API is that it needs an ODBC datasource to be
configured,
No, it doesn't. You do need a DB2 client installed, though.
and I want to avoid this because it makes the installation
of my product to be more complicated, and I cannot switch between
databases within the same instance the way that the CLP enable.


CLI allows you to do that. In fact, a CLI app can be connected to several
databases at the same time.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Jan 23 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Marco Aschwanden | last post by:
Hi - Win2000 - Python 2.3.3 - py2exe 0.5.0 - eGenix Comercial & Base Package I am developing an app using mxODBC. On the home page they say ...
6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
3
by: Markus Keuthmann | last post by:
Hi, is it possible to connect to a DB2 database through PHP WITHOUT ODBC like in MySQL? Example MySQL: // Open the database connection and use the sample // database $connection =...
14
by: Abhi | last post by:
FYI: This message is for the benefit of MS Access Community. I found that this prblem has been encounterd by many but there is hardly any place where a complete solution is posted. So I thought...
1
by: Durumdara | last post by:
Hi ! I have a text processor code and I want to put the results to standard files. HTML, XML, SQLite - they are ok. But I want to put these datas to DBF too, because when records are many,...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
1
by: timasmith | last post by:
Hi, If I have a computer without Microsoft Access installed but with an ODBC connection to a .mdb file - can I still access the 'database' via ODBC? thanks Tim
3
by: Suresh P | last post by:
Hi All, I tried to access the mysql database in ODBC using ip address and username/password. It returns, "cannot connect to MySQL server on IP ADDRESS(10060)". This could be related to Firewall...
1
by: lyle fairfield | last post by:
By "dynamic" I mean the use of an SQL string in code. This is my best to date: I do not use ODBC frequently. Is there a simpler way? Public Sub Whatever() Dim q As DAO.QueryDef With...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
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,...
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...

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.