database - What is the difference between ODBC and OleDB? -
I found this question here:
who gave me more information but actually did not answer the question I am asking, so I will go from there.
I am working in C #. I will tell you how I have reached this puzzle, but basically I am trying to make a decision between ODBC and Oleadibi.
We work with many different clients who keep extremely diverse databases (some SQL, some Oracle, some more I have never heard of and have not troubled to remember the name )
Now, what I think, the ODBC is old, and that is / is the standard. And now Olebey has come along and ... is ... different? But it caters to the same thing (it talks to the database)
Why would I want to use one from one to another? The Odyssey (according to the above post) is cross-platform, which is good, but Olendi has provided very little information about the offer of ODBC.
In my second research, I have found (on MSDN forums) people are saying "If you can, use the Odidi, take the support of ODBC" Naturally, no logic for the three Not given, so I want to hear something.
There is a C API to access the ODBC database. There is a standard for this, it is supported by every major database vendor, it is very well-documented, it is a cross-platform, OLDB is a similar interface that uses Microsoft's com technology instead of C API. This means that it is only easily accessible on the platform, which supports COM.
At the end of the day, both libraries provide almost equivalent basic functionality; Indeed, some OLDB drivers actually use the ODBC instead of the original database libraries.
Therefore, if you are a C # developer, then working on Windows, the OLEDB is a clear choice between the two. If you are using C (or CMs not using C ++), or need cross-platform support, then the ODBC is a better bet.
Comments
Post a Comment