Given the answers you've already been given consider:
Assuming you're accessing the ODBC API directly, writing to the ODBC API
from Visual Studio 2005 will be difficult--although possible. In my
Hitchhiker's Guides (4th-5th Editions) I discuss the complexities and
advantages of using an ODBC API approach and the benefits (and complexities)
of using a "data access layer" (DAL) like RDO or COM-based ADO. ADO.NET is
yet another beast. It permits closer access than any DAL (short of DBLib).
The .NET Framework has supported ODBC from (nearly) the beginning--it's now
exposed as System.Data.Odbc. The choice of a DAL really depends on what
you're doing (as I discuss in my more recent books on ADO.NET). Your first
choice of a DAL (when creating a .NET Framework application) should be a
"native" interface like SqlClient for SQL Server or OracleClient for Oracle.
If you're writing an application that switches from DBMS to DBMS you can use
the new "factory" classes in ADO.NET 2.0 (although I don't recommend this
approach).
As far as performance, no you'll (eventually) discover that any DAL will
be slower than a direct API approach. That's because there are more layers
involved. However, the productivity of the DALs is undisputed. This means
developers can create more applications more efficiently. It turns out that
it does not make much difference how fast you ask the question (setup a
query for execution) or capture the results if the question (query) is
inefficient so comparing the ODBC API with ADO (any flavor) is often a
meaningless exercise.
hth
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________