[freetds] C program to connect MS SQL server

Ashirvad Uniyal ashirvad.uniyal at bmpg.pl
Sat Aug 26 03:44:42 EDT 2006

Dear All,

I want to use C program to connect MS SQL server.

In my C program, I include the following libraries.
#define DBNTWIN32
#include "windows.h"
#include <sqlfront.h>
#include <sqldb.h>
#include <stdio.h>

I encounter a lot of errors like  "There is no file or directory windows.h"

Can I have a simple workable sample code in C ??

Thanks in advance,

More information about the FreeTDS mailing list