 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
yadavindrian01@hotmail.co Guest
|
Posted: Wed Feb 23, 2005 10:28 am Post subject: Can I connect to SQL database through C++, |
|
|
Hi all
Please tell me if I can connect to SQL database through C++,
Please help
|
|
| Back to top |
|
 |
SirMike Guest
|
Posted: Wed Feb 23, 2005 10:58 am Post subject: Re: Can I connect to SQL database through C++, |
|
|
[email]yadavindrian01 (AT) hotmail (DOT) com[/email] wrote:
| Quote: | Please tell me if I can connect to SQL database through C++,
Ofcourse, You can  |
--
the code is my strength
SirMike
|
|
| Back to top |
|
 |
Thomas Matthews Guest
|
Posted: Wed Feb 23, 2005 12:42 pm Post subject: Re: Can I connect to SQL database through C++, |
|
|
[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
|
Posted: Mon Feb 28, 2005 8:41 am Post subject: Re: Can I connect to SQL database through C++, |
|
|
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
|
Posted: Mon Feb 28, 2005 8:44 am Post subject: Re: Can I connect to SQL database through C++, |
|
|
My database is on same PC, very simple one - only few fields and
enteries.
|
|
| Back to top |
|
 |
Ioannis Vranos Guest
|
Posted: Mon Feb 28, 2005 1:42 pm Post subject: Re: Can I connect to SQL database through C++, |
|
|
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 |
|
 |
|
|
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
|
|