This is information about Microsoft's ODBC
http://msdn.microsoft.com/library/de...his_manual.asp
This should give you an idea of what you are in for.
Just a note, this site recommends that you read 23 books to help with your understanding of ODBC and C/C++. Let me say that again *twenty-three* books. You are asking us to write code for you in which we would need a
vast amount of knowledge about your system, application, environment, network topography, and server, not to mention ODBC and 23 other books.
Sorry friend, you are on your own for this one. We can help with specific problems like "why isnt this line of code working" or "why do I get XYZ error when compiling" but a whole program, not possible.