Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database connection using C 1

Status
Not open for further replies.

c1

Programmer
Aug 2, 2000
2
GB
How can I access Database like Oracle/SQL Server using C language? Which Header files are needed for this?
Thanks a lot
 
c1,
There is something called Pro*C . You write your logic in C and whereever you want to access the Oracle database . You need to put your SQL Commands. After that you need to pass this file to a proc.mk (make file provided by Oracle for that system). It will generate a proper C file , converting all the SQL codes to its equivalent C code. Then you just compile your C program and get your job done.
For another databases ( I am not very sure) , some programmers provide the library functions . You need to get them and include in your program.

Hope this answers your question.

Siddhartha Singh

Siddhartha Singh
siddhu_singh@hotmail.com
siddhu.freehosting.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top