That would give you a Unix-like API to write something against.
Oh hang on: I think there's a [link|http://unicon.sourceforge.net/|Unicon] binary for Windows that can talk ODBC. It should be quite easy to do what you want with that. You'll probably want to read [link|http://www.cs.utsa.edu/~fbalbi/unicon|Frederico Balbi's Unicon ODBC Interface].
Wade.