Connecting Tech Pros Worldwide Forums | Help | Site Map

Connection to database

dnvsrikanth@gmail.com
Guest
 
Posts: n/a
#1: Jul 23 '05
Using some of the object-oriented languages like Java and VB we can
connect to a database. But by using C++ can we connect to a database?
If we can, how do we do so?


Mike Wahler
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Connection to database



<dnvsrikanth@gmail.com> wrote in message
news:1105209063.717115.129270@c13g2000cwb.googlegr oups.com...[color=blue]
> Using some of the object-oriented languages like Java and VB we can
> connect to a database. But by using C++ can we connect to a database?[/color]

Yes, it's very likely.
[color=blue]
> If we can, how do we do so?[/color]

By reading the database product's documentation and
following its instructions.

Your question is not a C++ language question, so
is not topical here.

-Mike


Bob Hairgrove
Guest
 
Posts: n/a
#3: Jul 23 '05

re: Connection to database


On 8 Jan 2005 10:31:03 -0800, dnvsrikanth@gmail.com wrote:
[color=blue]
>Using some of the object-oriented languages like Java and VB we can
>connect to a database. But by using C++ can we connect to a database?
>If we can, how do we do so?[/color]

We don't -- at least not using purely ANSI/ISO C++, which is the only
topic for this newsgroup.

We need to find an appropriate middleware, such as ODBC, OLEDB etc. or
else use the proprietary CLI (call-level interface) provided by our
DBMS vendor.

Then, if we are still stuck after we have RTFM, we can post to an
appropriate newsgroup for the OS/middleware/API in question.

--
Bob Hairgrove
NoSpamPlease@Home.com
Closed Thread