S
sabarish
Hai to all the people. please tell how can i Connect to the Database
through C program. I have No clarity in that.
through C program. I have No clarity in that.
sabarish said:Hai to all the people. please tell how can i Connect to the Database
through C program. I have No clarity in that.
kk said:Hello,
By using pro*c
> you can connect database. what's ur os. first create a
file and save it with extension name is .pc and compile it with proc
<filename.pc> then compile it with cc and execute it with a.out if u r
using unix os.
the code looks like this:
#include <sqlca.h>
main()
{
varchar uid[]="system",passwd[]="manager";
EXEC SQL connect :uid identified by asswd;
printf("successfully connected to database");
/* u r code goes here */
}
Since you have not said *which* database we can't even
direct you to the correct place.
I kindly direct your attention to the subject line.
kk said:By using pro*c you can connect database. what's ur os. first create a
file and save it with extension name is .pc and compile it with proc
<filename.pc> then compile it with cc and execute it with a.out if u r
using unix os.
the code looks like this:
#include <sqlca.h>
main()
{
varchar uid[]="system",passwd[]="manager";
EXEC SQL connect :uid identified by asswd;
printf("successfully connected to database");
/* u r code goes here */
}
Op Tue, 26 Jul 2005 17:20:12 GMT schreef Anonymous 7843:
Next time, repeat the subject in the message itself.
There are numerous newsreaders (software or in person) that don't read the
subject line.
I am only repeating remarks of others. So i'm only being polite.No. There is no posting guideline to that effect in comp.lang.c
or for usenet in general. You are not in a position to create
new guidelines.
No. There is no posting guideline to that effect in comp.lang.c
or for usenet in general. You are not in a position to create
new guidelines.
The subject lines are there for a reason and if you or your newsreader
chooses to ignore them it is not my concern.
Op Tue, 26 Jul 2005 18:05:13 GMT schreef Anonymous 7843:
I am only repeating remarks of others. So i'm only being polite.
No. There is no posting guideline to that effect in comp.lang.c
or for usenet in general.
Anonymous said:No. There is no posting guideline to that effect in comp.lang.c
or for usenet in general. You are not in a position to create
new guidelines.
The subject lines are there for a reason and if you or your newsreader
chooses to ignore them it is not my concern.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.