954,483 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

database connectivity in c++

How to use Data base connectivity in c++, files are not very useful..

animesh
Newbie Poster
7 posts since Jul 2004
Reputation Points: 11
Solved Threads: 0
 
How to use Data base connectivity in c++, files are not very useful..


Depends on which technology you want to use. ODBC, ADO, DAO, OLE DB? You have to be more specific. If you want to use ADO, let me know and I'll try to post some stuff. :lol:

BlackDice
Light Poster
43 posts since Apr 2004
Reputation Points: 19
Solved Threads: 0
 

using either oracle or sql , not much knowledge of odbc etc..

animesh
Newbie Poster
7 posts since Jul 2004
Reputation Points: 11
Solved Threads: 0
 
using either oracle or sql , not much knowledge of odbc etc..


I can't really help until you have a better grasp on what you want to do

BlackDice
Light Poster
43 posts since Apr 2004
Reputation Points: 19
Solved Threads: 0
 
hivework
Newbie Poster
18 posts since Mar 2004
Reputation Points: 13
Solved Threads: 0
 
I can't really help until you have a better grasp on what you want to do

I need to know about odbc connectivity , can c++ use all kinds of data base connectiviteis .

animesh
Newbie Poster
7 posts since Jul 2004
Reputation Points: 11
Solved Threads: 0
 
I need to know about odbc connectivity , can c++ use all kinds of data base connectiviteis .


As far as I know, C++ can use all kinds of db connectivity. I prefer to use ADO myself. ADO (ActiveX Data Objects) allow you to connect to just about any data source, but with an easier interface than using ODBC. The specific technologies you spoke aboujt earlier were only pieces of the puzzle that didn't seem like you knew how they fitted together. Usually, if you're using a technology like Oracle, SQL Server, or MySQL, that is just your back-end that holds the actual database. SQL is the set of commands and syntax used through ODBC to perform the operations on the data at that back end. ADO, DAO, and OLE DB are higher level interfaces for working with ODBC.

BlackDice
Light Poster
43 posts since Apr 2004
Reputation Points: 19
Solved Threads: 0
 
As far as I know, C++ can use all kinds of db connectivity. I prefer to use ADO myself. ADO (ActiveX Data Objects) allow you to connect to just about any data source, but with an easier interface than using ODBC. The specific technologies you spoke aboujt earlier were only pieces of the puzzle that didn't seem like you knew how they fitted together. Usually, if you're using a technology like Oracle, SQL Server, or MySQL, that is just your back-end that holds the actual database. SQL is the set of commands and syntax used through ODBC to perform the operations on the data at that back end. ADO, DAO, and OLE DB are higher level interfaces for working with ODBC.

thanks very much mr.bdiamond .

animesh
Newbie Poster
7 posts since Jul 2004
Reputation Points: 11
Solved Threads: 0
 

can u give the code that how u r using c++ to connect to database

thanks very much mr.bdiamond .

amit chhillar
Newbie Poster
1 post since Mar 2007
Reputation Points: 9
Solved Threads: 0
 

I too need to use either sqlserver or Mysql with c++.I have done my project with files but I have no idea at all about how to connect with these databases.And I dont have much experience of using ODBC or ADO.Just used ODBC once long time back with VB which was indeed very easy.I am just asking for some suggestions where to start afresh.Found a couple of links by googling but not of much use.Thanks in advance.

crazylunatic
Newbie Poster
13 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You