C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

C++ with SQL

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Some Clown
Guest





PostPosted: Tue Mar 02, 2004 12:43 am    Post subject: C++ with SQL Reply with quote



Greetings - I'm sure there's another place to ask this, but I'm not sure
what it is... so I'll be brief. I'd like to be pointed to somewhere (web,
book, whatever) where I can learn how to access a database from C++ using
SQL (I'm assuming this would be best) such as the tables and queries in an
existing Access database. I'd like to do this all via command-line without
having to use a GUI of any sort. Any ideas?


Back to top
Alf P. Steinbach
Guest





PostPosted: Tue Mar 02, 2004 12:58 am    Post subject: Re: C++ with SQL Reply with quote



* "Some Clown" <noone (AT) nowhere (DOT) net> schriebt:
Quote:

Greetings - I'm sure there's another place to ask this, but I'm not sure
what it is... so I'll be brief. I'd like to be pointed to somewhere (web,
book, whatever) where I can learn how to access a database from C++ using
SQL (I'm assuming this would be best) such as the tables and queries in an
existing Access database. I'd like to do this all via command-line without
having to use a GUI of any sort. Any ideas?

There's no standard C++ database interface.

AFAIK there's no database interface in the Boost library either.

So you'll have to use an interface specific to some database technology, and
for that, use Google to find what you're looking for.


Back to top
Julie
Guest





PostPosted: Tue Mar 02, 2004 1:06 am    Post subject: Re: C++ with SQL Reply with quote



Clown, not the right place. There are a lot of microsoft.public.programming.*
newsgroups, hunt around there.

However, in answer to your question, you will probably want to use MFC in a
console application. With an MFC app, you can use the ClassWizard to connect
to the database and automatically generate a wrapper class around your
table(s). Once you get the hang of it, it is a piece of cake, and simple to
manage through the ClassWizard. Refer to the online documentation for
CRecordset and associated classes for details.

Good luck.

Some Clown wrote:
Quote:

Greetings - I'm sure there's another place to ask this, but I'm not sure
what it is... so I'll be brief. I'd like to be pointed to somewhere (web,
book, whatever) where I can learn how to access a database from C++ using
SQL (I'm assuming this would be best) such as the tables and queries in an
existing Access database. I'd like to do this all via command-line without
having to use a GUI of any sort. Any ideas?

Back to top
db
Guest





PostPosted: Tue Mar 02, 2004 11:48 am    Post subject: Re: C++ with SQL Reply with quote

On Mon, 1 Mar 2004 16:43:06 -0800
"Some Clown" <noone (AT) nowhere (DOT) net> wrote:

Quote:
Greetings - I'm sure there's another place to ask this, but I'm not
sure what it is... so I'll be brief. I'd like to be pointed to
somewhere (web, book, whatever) where I can learn how to access a
database from C++ using SQL (I'm assuming this would be best) such as
the tables and queries in an existing Access database. I'd like to do
this all via command-line without having to use a GUI of any sort.
Any ideas?

http://sourceforge.net/projects/dbconnect/ or
www.wxwindows.org

br
db

Back to top
Some Clown
Guest





PostPosted: Tue Mar 02, 2004 8:35 pm    Post subject: Re: C++ with SQL Reply with quote

"db" <db (AT) TruNet (DOT) dk-NOSPAM> wrote

Quote:
On Mon, 1 Mar 2004 16:43:06 -0800
"Some Clown" <noone (AT) nowhere (DOT) net> wrote:

Greetings - I'm sure there's another place to ask this, but I'm not
sure what it is... so I'll be brief. I'd like to be pointed to
somewhere (web, book, whatever) where I can learn how to access a
database from C++ using SQL (I'm assuming this would be best) such as
the tables and queries in an existing Access database. I'd like to do
this all via command-line without having to use a GUI of any sort.
Any ideas?

http://sourceforge.net/projects/dbconnect/ or
www.wxwindows.org

I checked out the dbconnect site, and it's not quite what I was looking
for... and since I DON'T want to use a GUI, I'm not sure why you sent me to
wxwindows, though maybe I missed something there. Anyhoo... I found another
group which seems to be oriented towards my original question a little
better: "microsoft.public.vc.database" Thanks to all who replied.



Back to top
Jeff Schwab
Guest





PostPosted: Wed Mar 03, 2004 2:15 am    Post subject: Re: C++ with SQL Reply with quote

Some Clown wrote:
Quote:
Greetings - I'm sure there's another place to ask this, but I'm not sure
what it is... so I'll be brief. I'd like to be pointed to somewhere (web,
book, whatever) where I can learn how to access a database from C++ using
SQL (I'm assuming this would be best) such as the tables and queries in an
existing Access database. I'd like to do this all via command-line without
having to use a GUI of any sort. Any ideas?



Have you looked at MySQL++?


Back to top
db
Guest





PostPosted: Thu Mar 04, 2004 6:47 am    Post subject: Re: C++ with SQL Reply with quote

On Tue, 2 Mar 2004 12:35:32 -0800
"Some Clown" <noone (AT) nowhere (DOT) net> wrote:

Quote:
I checked out the dbconnect site, and it's not quite what I was
looking for... and since I DON'T want to use a GUI,

Who is talking about a GUI?

Quote:
I'm not sure why
you sent me to wxwindows,

Because of wxDB.

br
db

Back to top
Some Clown
Guest





PostPosted: Fri Mar 05, 2004 4:19 am    Post subject: Re: C++ with SQL Reply with quote

"db" <db (AT) TruNet (DOT) dk-NOSPAM> wrote

Quote:
On Tue, 2 Mar 2004 12:35:32 -0800
"Some Clown" <noone (AT) nowhere (DOT) net> wrote:

I checked out the dbconnect site, and it's not quite what I was
looking for... and since I DON'T want to use a GUI,

Who is talking about a GUI?

I'm not sure why
you sent me to wxwindows,

Because of wxDB.

My apologies. I went to the site initially and couldn't find a reference to
databases anywhere. I finally just googled within the site for 'DB' and got
a few entries, mostly API documentation buried in the site. Looks like a
good system, but for now I'm just going with MFC since I'm targeting a MS
Jet database anyhow.

I bookmarked the wxwidgets page though, for future reference and use. :)



Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.