Enjoy coding Enjoy coding - 1 year ago 87
SQL Question

How to execute sql statements from a C program?

How can I execute SQL statements from a C program. For example I want to display the output of

select * from EMP
from a c program. Do I need to do it using Stored Procedures? Do I need any library files to do it. My C compiler is Tiny C Compiler and I am currently having SQL server studio 2005. Suggestions for Unix/AIX platform + GCC are also invited.
Thanks in advance..

Answer Source

I am now using the following method explained in this question by me.It is satisfying my requirements.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download