In addition to ODBC, as Brian mentions, you can also use OLE DB and / or ADO (which actually simplifies the use of OLE DB). Three options: briefly introduced in this blog entry .
Of the ODBC, OLE DB, and ADO options, I think the easiest way would be to use ADO. Using ODBC or OLE DB directly, in my opinion, is a somewhat painful process. This can certainly lead to very fast code, but you pay for it during development. This page contains some simple examples.
Change Since this post was made (both the question and the answers), OLE DB is deprecated by Microsoft. Therefore, in the future, it probably makes sense to use a solution that does not go through OLE DB. This blog post says it.
Mark wilkins
source share