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 

Can I connect to SQL database through C++,

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





PostPosted: Wed Feb 23, 2005 10:28 am    Post subject: Can I connect to SQL database through C++, Reply with quote



Hi all

Please tell me if I can connect to SQL database through C++,
Please help

Back to top
SirMike
Guest





PostPosted: Wed Feb 23, 2005 10:58 am    Post subject: Re: Can I connect to SQL database through C++, Reply with quote



[email]yadavindrian01 (AT) hotmail (DOT) com[/email] wrote:
Quote:
Please tell me if I can connect to SQL database through C++,
Ofcourse, You can Smile


--
the code is my strength
SirMike

Back to top
Thomas Matthews
Guest





PostPosted: Wed Feb 23, 2005 12:42 pm    Post subject: Re: Can I connect to SQL database through C++, Reply with quote



[email]yadavindrian01 (AT) hotmail (DOT) com[/email] wrote:
Quote:
Hi all

Please tell me if I can connect to SQL database through C++,
Please help


Yes, you can.

However, you will need to know how to talk to
your database. For example:
1. Does your program directly call the database?

2. Is the data communication handled through a
shared or dynamically linked library?

3. Does the database communicate through sockets?

4. Does the database communicate through the Internet?

5. Does the database use another method such as ODBC?

All of these techniques, except the first, require
platform specific functionality, which is best discussed
in a newsgroup devoted to your platform.

Some other issues to think about:
A. Does the database require ASCII SQL statements?

B. Is there an API for the database?


--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library


Back to top
Minna
Guest





PostPosted: Mon Feb 28, 2005 8:41 am    Post subject: Re: Can I connect to SQL database through C++, Reply with quote

Please give me a little example describing how to connect.

Consider only small table, perform on input and output functions

Back to top
Minna
Guest





PostPosted: Mon Feb 28, 2005 8:44 am    Post subject: Re: Can I connect to SQL database through C++, Reply with quote

My database is on same PC, very simple one - only few fields and
enteries.

Back to top
Ioannis Vranos
Guest





PostPosted: Mon Feb 28, 2005 1:42 pm    Post subject: Re: Can I connect to SQL database through C++, Reply with quote

Minna wrote:

Quote:
My database is on same PC, very simple one - only few fields and
enteries.


You can connect to your SQL database by using VS 2003 and .NET for
example. That is by using ADO .NET.


Which is your sql server software?



BTW this is off topic in clc++, and if you are talking about VC++, you
should ask in microsoft.public.dotnet.languages.vc.


If it doesn't appear in your news server use the public MS news server:

msnews.microsoft.com



--
Ioannis Vranos

http://www23.brinkster.com/noicys

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.