473,408 Members | 1,845 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

ADO or ODBC Recommendations

Hello -

Anyone have any thoughts on which API to use - ADO or ODBC?

I have a fat client written in C++ using MFC ODBC classes to access a Jet
database.
The app is going to be modified to write to a SQL Server central database
with multiple users accessing their local copies of the database ( using
replication technology on the clients side).

Most of the performance benchmarks give an edge to ODBC over ADO when
writing to an Access database. Anyone know of any benchmarks for a c/s
environment?

I've seen references that ADO has some client side cursor features for
filters and sorting which are a benefit over ODBC. I'd also like to use
the asynchronous fetch that OLE DB provides and am not sure if this is
implemented in ODBC.

Thanks for the help.

Bruce

Jul 20 '05 #1
1 3817
nospam (br*********@REMOVEspamREMOVE.earthlink.net) writes:
I have a fat client written in C++ using MFC ODBC classes to access a Jet
database.
The app is going to be modified to write to a SQL Server central database
with multiple users accessing their local copies of the database ( using
replication technology on the clients side).

Most of the performance benchmarks give an edge to ODBC over ADO when
writing to an Access database. Anyone know of any benchmarks for a c/s
environment?

I've seen references that ADO has some client side cursor features for
filters and sorting which are a benefit over ODBC. I'd also like to use
the asynchronous fetch that OLE DB provides and am not sure if this is
implemented in ODBC.


The two are not easily comparable, as they are interfaces on two different
levels. ODBC is more low level and gives you more control over what you
are doing, but requires to write more code. ADO is more high-level and
easier to use - as long as you use it the way it was intended.

As for performance, it depends a lot on how you use ADO. If you use
ADO with remote procedure calls, using adCmdStoredProcedure, client-
side cursors, and you construct all parameter arrays without using
the .Refresh method (which can be called implicitly if you are not
careful) I would not expect ADO to lag behind ODBC.

I should add that I have very little experience of ODBC programming
myself. My best client library is DB-Library, but I'm starting to
know ADO decently.

--
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Marco Aschwanden | last post by:
Hi - Win2000 - Python 2.3.3 - py2exe 0.5.0 - eGenix Comercial & Base Package I am developing an app using mxODBC. On the home page they say ...
11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
1
by: swransky | last post by:
Hi, I'm new to the forum. Hope I'm starting this in the right place. I have the infamous timeout error accessing a sql server 2000 d through asp pages on iis. I read the other post concerning...
0
by: Kong Li | last post by:
Follow up to this thread, the latest Oracle 9i release 2 patchset (9.2.0.5) fixed the handle count leak problem. The problem is in Oracle client component. Thanks. Kong ----- From: Kong...
5
by: SerGioGio | last post by:
Hello, I am going nuts. I am trying to connect to my local ORACLE instance using ODBC. It used to work few weeks ago, but it fails now. Connection with: - SQL*plus: connection works! -...
6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
4
by: Andreas Lauffer | last post by:
Can anyone tell me advantages / disadvantages of DataDirect Server Wire ODBC-driver? Any experiences? What about redistribution? Andreas Lauffer, easySoft. GmbH, Germany
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
1
by: fasulin_mat | last post by:
I am working with SCO Vision ODBC (version 4.16.900.00). I try to retrieve information from a data base with SCO Vision ODBC called from a web service that runs at IIS. I have this error: 'ERROR ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.