473,394 Members | 1,787 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to connect SQL database in C programs

Hi Everybody,

I am doing a project and I desire to know can we connect SQL
database in C programs and use them ? Can any body can help me? Please
explain me the whole concept & give me the code also ..
I will be really greatful.....

Any help would be appreciated.

PS:- Its urgent

Thank's
Sachin

Jun 25 '06 #1
15 8624

Sachin wrote:
Hi Everybody,

I am doing a project and I desire to know can we connect SQL
database in C programs and use them ? Can any body can help me? Please
explain me the whole concept & give me the code also ..
I will be really greatful.....

Any help would be appreciated.


whois on posting IP ... india...

I guess you skipped that whole "go to school" bit before you accepted
an out sourced job?

Tom

/me in bad mood...

Jun 25 '06 #2
"Sachin" <sh****************@gmail.com> writes:
I am doing a project and I desire to know can we connect SQL
database in C programs and use them ? Can any body can help me? Please
explain me the whole concept & give me the code also ..
I will be really greatful.....

Any help would be appreciated.
Standard C, which is what we discuss here, has no concept of SQL. We
can't help you. You might be able to help yourself by (a) reading any
documentation you might have, (b) doing a web search, and/or (c)
posting to an appropriate newsgroup (sorry, I don't know which one
that would be).
PS:- Its urgent


Waiting until it became urgent, then posting to Usenet, was probably
not the best strategy.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jun 26 '06 #3
Sachin a écrit :
Hi Everybody,

I am doing a project and I desire to know can we connect SQL
database in C programs and use them ? Can any body can help me? Please
explain me the whole concept & give me the code also ..
I will be really greatful.....

Any help would be appreciated.

PS:- Its urgent

Thank's
Sachin

You want everything isn't it? Please explain me the whole concept & give me the code also ..


OK. Just give us the address of your teacher and we will send
the code to him. There is no point to send it to you since
you seem to know NOTHING about this subject...
Jun 26 '06 #4
jacob navia wrote:
> Please explain me the whole concept & give me the code also ..


OK. Just give us the address of your teacher and we will send
the code to him. There is no point to send it to you since
you seem to know NOTHING about this subject...


Dude, look at the posting IP.

It may be politically incorrect to say it but chances are he works at a
development firm, outsourced so effectively from another country. The
fact that the poster obviously has no idea of what they're doing isn't
surprising.

I'm all for equal employment across the globe. But scenarios like this
piss me off. Because it's us, the customer, who usually pay the price
in terms of shoddy applications that speak Engrish, have incomplete
piss-poor user manuals and need 17 levels of patching to do anything
useful.

Clearly the OP wants a snippet they can copy/paste into their
"application" that they are "developing". Any help we [could] give
them would just further undermine our profession.

Tom

Jun 26 '06 #5
On 25 Jun 2006 15:45:52 -0700, "Sachin" <sh****************@gmail.com>
wrote:
can we connect SQL database in C programs and use them


Kind of yes, SQLite provides your applications a SQL database program
that can be carried with your C projects. Including SQLlite into your
application will increase their sice by some 300kB. SQLlite implements
most of the SQL92 features and is available for many platforms.
Additional anti-bad thing is of cause that it is provided as a public
domain code.

Place to start:
http://www.sqlite.org/faq.html
Juuso Hukkanen
http://www.tele3d.com
(to reply by e-mail set addresses month and year to correct)

Jun 26 '06 #6
On 26 Jun 2006 02:58:26 -0700, "Tom St Denis" <to********@gmail.com>
wrote:

<OT>
Dude, look at the posting IP.

It may be politically incorrect to say it but chances are he works at a
development firm, outsourced so effectively from another country. I'm all for equal employment across the globe.
Very good, I like that.
Because it's us, the customer, who usually pay the price
in terms of shoddy applications that speak Engrish, have incomplete
piss-poor user manuals and need 17 levels of patching to do anything
useful.


That is where a 'western' standard project management software and
'western quality' spell checkers can help Sachin & his friends to
improve the products they make. Not to mention 'western standard of
quality' help- application makers, 'trustworthy western' payment
systems...

You see, outsourcing technology jobs to developing countries, boosts
their economy, but it makes them to become fresh interesting markets;
with other words soon a billion Indians and Chinese and Togoans are
happily downloading LTC in order to use those with their their MAD-64
processors.
http://www.freetrade.org/pubs/briefs/tbp-019.pdf

To prove that point, think how much Russias were able to buy European
cars during the 1980's, now as equal trade partners the road leading
from Mercedes and Wolksvagen factories to Russia has been re-asphalted
many times. Bonus is that trade partners are less unlike to threaten
each others economy with wars and such.

Even Mr. Donald Trump at the Trump university's Trump blog thinks
"Outsourcing Creates Jobs in the Long Run" - So it is kind of
scientifically proven :)
http://donaldtrump.trumpuniversity.c...asp?item=98255

US unemployment rate is currently 4.6 %, so don't panic.

</OT>

Juuso
Jun 26 '06 #7
On Mon, 26 Jun 2006 13:59:23 +0300, Juuso Hukkanen
<ju***********@tele3d.net> wrote:
Even Mr. Donald Trump at the Trump university's Trump blog thinks
"Outsourcing Creates Jobs in the Long Run" - So it is kind of
scientifically proven :)


Outsourcing may have helped to improve Mr. Trump's position in life,
but that's hardly scientific proof of anything.

BTW, I wasn't aware that Europe had outsourced vast quantities of work
to Russia at cut-rate prices.

Anyway, you miss the point. The point is that for the sake of saving a
few dollars this quarter, some company has sent software work to a
supplier who is obviously incompetent to do the job. They will pay for
this mistake in the long run, of course, but surely you can't blame
folks here for not wanting to do their work for them, at no cost.

In any case, the question is off-topic here.

--
Al Balmer
Sun City, AZ
Jun 26 '06 #8
On Mon, 26 Jun 2006 15:25:09 GMT, Al Balmer <al******@att.net> wrote:
Outsourcing may have helped to improve Mr. Trump's position in life,
but that's hardly scientific proof of anything.
Ok, I admit that but there are also economy studies that say
outsourcing be benefiting all parties at the macro-economic level.
http://in.rediff.com/money/2005/nov/02bpo2.htm
BTW, I wasn't aware that Europe had outsourced vast quantities of work
to Russia at cut-rate prices.
Oh yes, think a decade ago it was a country with a size of half of
USA's and full of educated people and a still working education
systems. Of cause lots of technology jobs have been created there and
especially in many of those East European former soviet block
countries.

About practical chances to outsource programming jobs to Russia, well
there is for example a Russian Software Developers Association
(RUSSOFT) and its 80 member organizations and 7000 developers; all
very interested for outsourcing projects from Europe or elsewhere.
http://www.russoft.org/russoft/

That's just global economy, but cheer up in absolute numbers the
technology jobs in USA aren't really disappearing; even if the
outsourcing increases it just helps making the cake bigger.
Anyway, you miss the point. The point is that for the sake of saving a
few dollars this quarter, some company has sent software work to a
supplier who is obviously incompetent to do the job.
Ok, Sachin's possible overseas contractor might be surprised one day
if the program would not behave as desired. But hey, Sachin may need
that SQL unit also for his university project OR to a hobby project at
a computer club OR for an urgent contract job he just received from
his local video store. C'mon should have I waited giving him and
answer until he took an oath, that his request was not related for any
off-shored job?
They will pay for this mistake in the long run, of course, but
surely you can't blame folks here for not wanting to do their
work for them, at no cost.


Perhaps CLC F.A.Q should contain a list of countries, to which lesser
quality answers would be adequate? I know you are not suggesting any
such restrictions (- and in that sense this is unfair), but my point
is that mixing CLC to politics of global economy is a bad idea. You
know, next requester from India or ... Vietnam might be a 12 year old
local nerd with bad "Engrish" and a crank-powered 100$ development aid
PC; doing child labour for a LOCAL contractor.
Sorry if you now feel like after 100 Touchées
Juuso Hukkanen
http://www.tele3d.com
(to reply by e-mail set addresses month and year to correct)

Jun 26 '06 #9
Tom St Denis wrote:
jacob navia wrote:
> Please explain me the whole concept & give me the code also ..


OK. Just give us the address of your teacher and we will send
the code to him. There is no point to send it to you since
you seem to know NOTHING about this subject...

Dude, look at the posting IP.

It may be politically incorrect to say it but chances are he works at a
development firm, outsourced so effectively from another country. The
fact that the poster obviously has no idea of what they're doing isn't
surprising.

I'm all for equal employment across the globe. But scenarios like this
piss me off. Because it's us, the customer, who usually pay the price
in terms of shoddy applications that speak Engrish, have incomplete
piss-poor user manuals and need 17 levels of patching to do anything
useful.

Clearly the OP wants a snippet they can copy/paste into their
"application" that they are "developing". Any help we [could] give
them would just further undermine our profession.

Tom


From www.spacedaily.com
Rising Salaries Threatens Booming Outsourcing Industry In India

Bangalore, India (AFP) Jun 25, 2006
Soaring salaries and poor quality of manpower are prompting foreign
firms to shut their outsourcing operations in India although there is no
cause for alarm yet, officials and analysts say.

US-based Apple Computer and software maker Pervasive have been joined by
Powergen, a British subsidiary of German energy supplier E.ON, in
announcing the closure of their centres in India's technology hub of
Bangalore.

"The potential cost savings of an offshore development operation can be
mathematically compelling," said John Farr, president and chief
executive officer of Pervasive Software.

"However, we have found that the complexity of managing such an
operation and the increasing costs of labour, employee turnover,
training and facilities in such a hot market as Bangalore makes it
challenging to realise those savings," Farr said.

The National Association for Software and Service Companies (NASSCOM),
India's premier software body, said salaries of freshers had shot up
between 11 percent and 15 percent in the past few years while wages for
senior managerial positions had risen by a whopping 30 percent.

Analysts said labour arbitrage for India existed only at the entry-level
where engineers earned about 9,000 dollars a year -- about one-seventh
of the wages being paid their counterparts in the United States.

Consultancy firm Stanton Chase International said salaries of managers
with 10 to 15 years experience in the US was between 100,000 dollars to
150,000 dollars (6.7 million rupees) while in India they were paid at
least 10 million rupees.

"During the start of the technology boom (in 1993) the top management
people were paid about three million rupees," G.C. Jayaprakash,
principal consultant of Stanton Chase, told AFP. "The most worrying
factor (for foreign firms) is the steep increase in salaries.

"Big companies such as Cisco, Motorola and others are only hiring
freshers and at lower managerial levels. This is for the simple reason
that IT managers from the US can be accommodated at a much cheaper
rate," he said.

Other than steep salaries the quality of manpower is also proving to be
a challenge for technology firms.

Powergen announced last week that call centres in India would no longer
be answering telephone calls from its customers due to complaints about
the poor standard of service.

Leo Puri, director in India of McKinsey and Company, said the industry
and the government needed to find ways of producing more "employable"
talent for the industry.

According to NASSCOM more than three million graduates pass out of
colleges every year and India produces 400,000 engineers anually but "of
this only a very small percentage is employable".

"Rising salaries ... is a long-term threat to the industry. In terms of
competitiveness it will hound the industry in the next three to five
years. That does not mean we must sound the alarm bells just because a
handful of firms leave," Puri said.

India continued to remain competitive compared to the Philippines or
Vietnam as labour arbitrage was only a secondary driver, he said.

"We have the capability to put together large quality oriented business
processes and have a track record of innovation. India can still deliver
a huge cost benefit and it will continue to do so for the next 15
years," Puri said.

India's software and outsourcing revenues are projected to grow between
27 percent to 30 percent in the current financial year to between 29
billion dollars and 31 billion dollars, according to NASSCOM.

Anant Koppar, president of Mphais Technologies, an outsourcing firm
which was acquired by US giant EDS earlier this month, said the
middle-level salary increase was mainly due to "supply constraints".

"We need to look at the people coming out of the institutes and make
them industry-ready. These engineers and graduates have to be tuned in
to industry's needs," Koppar said.

"The moment you have more people with skills the salary levels will come
down. Salary costs account for almost 60 percent of the total costs of a
firm," he said.

NASSCOM said it expected a shortage of 500,000 people in the outsourcing
sector in the next four years.

Sunil Mehta, vice president of NASSCOM, said despite the hurdles India
still dominated the outsourcing industry and domestic and multinational
companies operating in the country were turning profits.

"Those companies which employ fewer people and do not take advantge of
economies of scale are the ones that are facing problems," Mehta told AFP.

Source: Agence France-Presse
Jun 26 '06 #10
On Mon, 26 Jun 2006 15:25:09 GMT, in comp.lang.c , Al Balmer
<al******@att.net> wrote:
BTW, I wasn't aware that Europe had outsourced vast quantities of work
to Russia at cut-rate prices.


It hasn't.

--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Jun 26 '06 #11
On Mon, 26 Jun 2006 21:36:56 +0100, Mark McIntyre
<ma**********@spamcop.net> wrote:

<OT>
<al******@att.net> wrote:
BTW, I wasn't aware that Europe had outsourced vast quantities of work
to Russia at cut-rate prices.


It hasn't.


That is mostly true. Al got the idea or Europeans being outsourcing
jobs to Russia from his own imagination - or at least not from me.
Althought many western companies have been putting all kinds of
factories factories there, I dont think it is due to outsourcing but
rather a sign of corporations expanding into new markets.

In my post to which Al replied, I mentioned the growth of Russian
economy to have made them equal trade partners; who happen to be now
bying lots of automobiles. And In my reply post to Al I did show
Russians to be organized and willing for doing outsourced programming
jobs, but not that a vast quantity of programming work would be
outsourced allredy.

Juuso
</OT>
Jun 26 '06 #12
Juuso Hukkanen <ju***********@tele3d.net> writes:
On Mon, 26 Jun 2006 21:36:56 +0100, Mark McIntyre
<ma**********@spamcop.net> wrote:

<OT>
<al******@att.net> wrote:
BTW, I wasn't aware that Europe had outsourced vast quantities of work
to Russia at cut-rate prices.


It hasn't.


That is mostly true. Al got the idea or Europeans being outsourcing
jobs to Russia from his own imagination - or at least not from me.
Althought many western companies have been putting all kinds of
factories factories there, I dont think it is due to outsourcing but
rather a sign of corporations expanding into new markets.

In my post to which Al replied, I mentioned the growth of Russian
economy to have made them equal trade partners; who happen to be now
bying lots of automobiles. And In my reply post to Al I did show
Russians to be organized and willing for doing outsourced programming
jobs, but not that a vast quantity of programming work would be
outsourced allredy.


They've stopped in Romania, for now. At least Siemens and Alcatel have
hired large numbers of programmers. If wages go much higher there may
be a chance that some companies will move farther east although, given
the amount of money they put into buildings and people, I doubt that.

--
Ioan - Ciprian Tandau
tandau _at_ freeshell _dot_ org (hope it's not too late)
(... and that it still works...)
Jun 26 '06 #13
On Mon, 26 Jun 2006 21:36:56 +0100, Mark McIntyre
<ma**********@spamcop.net> wrote:
On Mon, 26 Jun 2006 15:25:09 GMT, in comp.lang.c , Al Balmer
<al******@att.net> wrote:
BTW, I wasn't aware that Europe had outsourced vast quantities of work
to Russia at cut-rate prices.


It hasn't.


I know. Tell Jusso - it's his theory that requires it.

--
Al Balmer
Sun City, AZ
Jun 26 '06 #14
On Tue, 27 Jun 2006 01:42:25 +0300, Juuso Hukkanen
<ju***********@tele3d.net> wrote:
On Mon, 26 Jun 2006 21:36:56 +0100, Mark McIntyre
<ma**********@spamcop.net> wrote:

<OT>
<al******@att.net> wrote:
BTW, I wasn't aware that Europe had outsourced vast quantities of work
to Russia at cut-rate prices.
It hasn't.


That is mostly true. Al got the idea or Europeans being outsourcing
jobs to Russia from his own imagination - or at least not from me.
Althought many western companies have been putting all kinds of
factories factories there, I dont think it is due to outsourcing but
rather a sign of corporations expanding into new markets.


That was exactly my point. Your command of English seemed to be good
enough to support a bit of sarcasm. My apologies if I was wrong.

You were using the economic progress of Russia, somehow, to augment
your pro-outsourcing argument. I was pointing out (in an indirect way)
that it had little or nothing to do with outsourcing. Now, apparently,
you are agreeing with me.
In my post to which Al replied, I mentioned the growth of Russian
economy to have made them equal trade partners; who happen to be now
bying lots of automobiles. And In my reply post to Al I did show
Russians to be organized and willing for doing outsourced programming
jobs, but not that a vast quantity of programming work would be
outsourced allredy.

Juuso
</OT>


--
Al Balmer
Sun City, AZ
Jun 27 '06 #15
On Tue, 27 Jun 2006 00:03:15 GMT, Al Balmer <al******@att.net> wrote:

<OT>
Althought many western companies have been putting all kinds of
factories factories there, I dont think it is due to outsourcing but
rather a sign of corporations expanding into new markets.


That was exactly my point.


Now I see you are about 50% right :) I uncarefully said "To prove that
point" ... think Russia in a chapter following a chapter that listed
two agendas:
1) Outsourcing boost economies in developing countries, allowing those
2) fresh economies to start buing western Hi-Tech As customers

Ok, Russian economy is booming , which allows them to obtain lots of
western technology - like automobiles. Obviously the reason for why
it is booming is related to oil,gas and other natural resource prices
and very little to incomes obtained from off-shored technology
projects. My point was to show the developed economies as future
customers.

Sorry for confusion
Juuso
</OT>
Jun 27 '06 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: programer | last post by:
Can I use Activex (as vb) to connect database when I use vc.net.
2
by: Mathew | last post by:
Can any one pls help me, How to connect SQL Server database thru vb.net. But it gives an error. I tried to connect thru SQLDataAdapter. General network error. Check your network documentation. ...
3
by: venkatesh | last post by:
hai to everybody I need to know how to connect database ms access or oracle with c or c++? please if u know tell I am interested in doing project with c thanks in advance....
1
by: arun_kumar112 | last post by:
HI , I am new member of this comminity, let me introduce first, i am MCA final year student, doing a project on network system, and database . will you tell me how can we connect database (...
1
by: nagendra prasad | last post by:
how to connect database for visualbasic using ADO
5
by: raghu4uon | last post by:
hi Can anyone give source code to connect oracle 8 database to my java project????? i'm using jdk1.5, tomcat 5.5.9 web server, oracle 8..... i have created the tables but i dont know how to...
3
by: Raymond Chiu | last post by:
Dear All, I have posted my question as below. But no answers, hope it can found here. ...
3
by: iedayah88 | last post by:
can sombody help me..after i create database in oracle.. what i must do to connect database and sql.. it's i must setup odbc first? is yes, how to setup odbc in localhost?
2
by: chetan ghadiya | last post by:
how to connect database in vb ?
1
by: rishiverma | last post by:
how to connect database create in sql server ,to my web site upload on domain.
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.