I am trying to access data hosted in MS SQL Server from a cygwin environment.

This is because I am porting a Unix app which uses MySQL to W2k + SQL Server.

The language in which the app is written is C and C++. I would need some sort of intermediate layer that would allow me to use MS ADO like functions from cygwin.

Does anybody know about a solution to this problem? Is this project feasible? If there is no solution already developed, any suggestions as how to do it?

I looked at FreeTDS, but there is no C++ API. Any help would be much appreciated.