Dazu gibts die CLI-Routinen von Microsoft:
ODBC-API-Implementierungsdetails