Refer http://www.easysoft.com/developer/languages/c/odbc_tutorial.html if you want to connect c to database..