473,411 Members | 1,889 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,411 software developers and data experts.

Connection to the database

hi friends. i have a question that is "how can we connect to the
database through C program"? I asked sevaral people. Nobody give right
answer. Please send me how can i do that.

Nov 15 '05 #1
12 1205
"sabarish" <su******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
hi friends. i have a question that is "how can we connect to the
database through C program"?


By using a platform- and/or database-specific API, which makes the question
off-topic in comp.lang.c.

Alex
Nov 15 '05 #2
sir which is on Windows 2000 Advanced Server O.S and i need a
connection to Oracle 8i

Nov 15 '05 #3
In article <11**********************@g47g2000cwa.googlegroups .com>,
sabarish <su******@gmail.com> wrote:
sir which is on Windows 2000 Advanced Server O.S and i need a
connection to Oracle 8i


How nice for you.

Nov 15 '05 #4
Google for oracle proc precompiler.

JaYmZ

"Kenny McCormack" <ga*****@yin.interaccess.com> wrote in message
news:dc**********@yin.interaccess.com...
In article <11**********************@g47g2000cwa.googlegroups .com>,
sabarish <su******@gmail.com> wrote:
sir which is on Windows 2000 Advanced Server O.S and i need a
connection to Oracle 8i


How nice for you.

Nov 15 '05 #5
"sabarish" <su******@gmail.com> writes:
hi friends. i have a question that is "how can we connect to the
database through C program"? I asked sevaral people. Nobody give right
answer. Please send me how can i do that.


Please tell all the other people who were given the same homework
assignment that comp.lang.c is not the place to ask this question.
Thank you.

--
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.
Nov 15 '05 #6
In article <K%*************@news-west.eli.net>,
James T. Sprinkle <oi*********@hotmail.com> wrote:
Google for oracle proc precompiler.

JaYmZ


Thanks, but no thanks.

Nov 15 '05 #7
The problem is, of course, that there's no right answer.

The C language specifies no method for connecting to databases. Perhaps
there are APIs for particular enviornments that implement functions to
connect to databases, but those will likely vary quite a bit depending on
the platform in question and even the database that you are interested in
connecting to.

In short, your question has no general answer. Consult your database and
platform documentation for more information.

sabarish wrote:
hi friends. i have a question that is "how can we connect to the
database through C program"? I asked sevaral people. Nobody give right
answer. Please send me how can i do that.


--
Remove '.nospam' from e-mail address to reply by e-mail
Nov 15 '05 #8
Who asked you for your opinion?

JaYmZ
"Kenny McCormack" <ga*****@yin.interaccess.com> wrote in message
news:dc**********@yin.interaccess.com...
In article <K%*************@news-west.eli.net>,
James T. Sprinkle <oi*********@hotmail.com> wrote:
Google for oracle proc precompiler.

JaYmZ


Thanks, but no thanks.

Nov 15 '05 #9
On Thu, 04 Aug 2005 14:43:44 GMT, "James T. Sprinkle"
<oi*********@hotmail.com> wrote:
Who asked you for your opinion?
I'd say you invited it when you told him to"Google for oracle proc
precompiler". Why did you think he would want to do that? Or didn't
you know who you were replying to? BTW, don't top-post.
JaYmZ
"Kenny McCormack" <ga*****@yin.interaccess.com> wrote in message
news:dc**********@yin.interaccess.com...
In article <K%*************@news-west.eli.net>,
James T. Sprinkle <oi*********@hotmail.com> wrote:
>Google for oracle proc precompiler.
>
>JaYmZ


Thanks, but no thanks.


--
Al Balmer
Balmer Consulting
re************************@att.net
Nov 15 '05 #10
In article <AQ*************@news-west.eli.net>,
James T. Sprinkle <oi*********@hotmail.com> wrote:
Who asked you for your opinion?


You did - in your reply to my post.

As Al noted:
1) Be careful who you are replying to.
2) Don't top-post.

Note that violation of #2 makes it hard to avoid violating #1.
Pity the top-posting fools...

Nov 15 '05 #11
In article <11**********************@z14g2000cwz.googlegroups .com>, sabarish wrote:
hi friends. i have a question that is "how can we connect to the
database through C program"? I asked sevaral people. Nobody give right
answer. Please send me how can i do that.


assuming it's some sort of SQL....
open a telnet (or other TCPIP) connection to the apropriate port.
check youre favourite TCPIP libraries documentation for details
on how to doo this from C.

--

Bye.
Jasen
Nov 15 '05 #12
Jasen Betts <ja***@clunker.homenet> writes:
In article <11**********************@z14g2000cwz.googlegroups .com>,
sabarish wrote:
hi friends. i have a question that is "how can we connect to the
database through C program"? I asked sevaral people. Nobody give right
answer. Please send me how can i do that.


assuming it's some sort of SQL....
open a telnet (or other TCPIP) connection to the apropriate port.
check youre favourite TCPIP libraries documentation for details
on how to doo this from C.


Please don't answer off-topic questions. There are newsgroups that
discuss databases; this isn't one of them. You're not doing the
original poster any favors by posting advice that the rest of us can't
check.

--
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.
Nov 15 '05 #13

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

Similar topics

17
by: AMC | last post by:
Hi, I'm using an include file to store the connection string to a database. Whenever I try to reference that string to open a connection in the page that includes the file I get the error 'empy...
11
by: pradeep_TP | last post by:
Hi all, I have a few questions that I have been wanting to ask for long. These are all related to ADO.net and specifically to conenction to database. 1) If I have opened a connection to a...
3
by: R Reyes | last post by:
Hi, I'm trying to modularize my database connections a little better and get more out of my project with less code. First check out this common dbOpen() function inside class clsDatabase. I...
7
by: Lau Lei Cheong | last post by:
Hello, Actually I think I should have had asked it long before, but somehow I haven't. Here's the scenerio: Say we have a few pages in an ASP.NET project, each of them needs to connect to...
3
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database...
35
by: Terry Jolly | last post by:
Web Solution Goal: Have a global database connection Why: (There will be 30+ tables, represented by 30+ classes) I only want to reference the database connection once. I put the connection...
6
by: Arsalan Ahmad | last post by:
Hi all, I am creating a website in which in an Item detail page there are a number of web controls (7 or 8) and what is happening that inside each of control's Page_Load() function I am creating...
5
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
20
by: fniles | last post by:
I am using VS2003 and connecting to MS Access database. When using a connection pooling (every time I open the OLEDBCONNECTION I use the exact matching connection string), 1. how can I know how...
6
Cintury
by: Cintury | last post by:
Hi all, I've developed a mobile application for windows mobile 5.0 that has been in use for a while (1 year and a couple of months). It was developed in visual studios 2005 with a back-end sql...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.