Writing an ODBC Driver

Where can I get started with information about writing an ODBC Driver.  I need to write a driver for a custom data structure and I need to find out what I need to implement to make it all work together.  Maybe even an example driver (i.e. Text Driver?).
twain052098Asked:
Who is Participating?
 
tma050898Connect With a Mentor Commented:
twain,

Get the ODBC 3.0 Programmer's Reference. It can be found at most book stores for about $100. Not only does it cover how to write ODBC client code, but it also shows what's needed in order to write an ODBC drivers in terms of the functions that you are required to export, the different levels of compliance (both SQL and API), what your driver needs to do obtain the different levels of compliance, etc.

Tom

0
 
twain052098Author Commented:
Thanks!
0
 
tma050898Commented:
BTW, the reason the ODBC 3.0 Programmer's Reference costs so much is that it includes the entire ODBC SDK and several sample programs (with source code).
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
twain052098Author Commented:
Is the book worth that much, or should I try to d/l it from Microsoft?
0
 
tma050898Commented:
Damn! That was the quickest reponse to an answer I've ever seen! Definitely a man on a mission ;) You're welcome and good luck with your driver.

Tom

0
 
tma050898Commented:
You're so fast that our questions are getting out of sync ;)

>>>Is the book worth that much, or should I try to d/l it from Microsoft?
I personally think its worth it for a number of reasons...

1. There are times when I'm having a problem and I want to quickly jump from one place in the book to another when tracking down information.
2. Can you download the SDK *and* all the samples? Even if you can, what are you going to download them to? With the CD, I never have to worry about reinstalling my machine and having to download the SDK again. And if I want to install the SDK to another box I can do that as well.

I don't know. Maybe it's just a personal preference. But, I prefer having the books and the CD.

Tom

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.