473,698 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ADP Ready for Prime Time?

A while back I posted a message re. using an ADP file with a SQL Server back
end as opposed to MDB file with linked tables, thinking that the ADP file
would be less problematic. The input I got was that the ADP would be just
as, if not more, problematic; that ADO is far more limited than DAO,
requiring a lot of workarounds; and that it would be better to stay with a
seasoned MDB file than to switch to an ADP.

The database in question was inherited by me from someone else who
implemented things in a less than ideal way, and he, himself, converted it
from an existing database in another application. The database needs to be
revamped, and we are looking to rebuild it from the ground up with
additional functionality. So now the question is not staying with a seasoned
MDB as opposed to a new ADP; but, rather, which would be better for working
with a SQL Server back end, an MDB or ADP file?

Obviously if we go with an MDB file we can reuse many of the DAO routines,
as appropriate. But the main concern here is performance: which one will
provide the better performance, better data access, fewer strange anomalies,
and so on. Development time isn't the main concern.

The database currently relies in part on DAO and in part on stored
procedures. Obviously moving more towards stored procedures would be better,
but there will probably still be a significant amount of code in the front
end.

Any thoughts re. MDB vs. ADP or anything else related to this would be
appreciated.

Thanks,

Neil

Nov 13 '05
25 2652
So why were we using Access again? Being able to edit in continuous forms is
one way we make user interfaces easier to use, by not making user have to
switch contexts all the time. It's also a way we can use to keep from
duplicating the same controls on multiple forms, this keeping application
complexity down.

If I'm designing an application where you only update one row at a time, I
might as well use a more powerful programming language with weaker bound UI
capabilities.

On Wed, 26 Jan 2005 14:39:49 -0800, <aa*********@ho tmail.com> wrote:
views are a pain to update

so basically use base tables

and get this

1) only load a single record at a time and this should cut down on
complexity
"Steve Jorgensen" <no****@nospam. nospam> wrote in message
news:n8******* *************** **********@4ax. com...
On 18 Jan 2005 05:41:56 -0800, al*****@yahoo.c om wrote:
>Steve Jorgensen wrote:
>> It's not just the develompment time, it's the unpredictabilit y of
>runtime
>> behavior.
>[snip]
>> It's easier to get higher reliability and good performance with an
>MDB than an
>> ADP - period.
>
>Steve,
>
>What are the issues you're talking about here? Or can you point me to a
>link that talks about some of them (if they've been discussed
>extensively) ? I haven't been around the CDMA 'hood for a while; I know
>there are plenty of people who argue, and I agree with them, that
>learning ADO because it's new doesn't make any sense, but I don't
>remember reading much that talks about ADPs being inherintly more prone
>to falling over at run time, or inherintly requiring more development
>time (other than learning ADO).
>
>This is in no way a troll or a challenge. I've been working on a
>project that uses a MS SQL Server back end and an ADP front for the
>last seven months, and I've run into very few things that I hadn't seen
>in an MDB. Or at least that's my impression--maybe I'm just seeing
>trees, though.


Well, for one thing, ADPs have a habit of making certain multi-table

queries
uneditable. The first version of a query may be editable, but after some
random and seemingly trivial change in the query itself or afger the next
Access service pack or MDAC upgrade, it becomes uneditable again, and the
tweaking process starts all over again. I've finally gotten to the point
where I don't even try to use multi-table queries on bound forms in an

ADP.
Either, I use combo boxes as lookups for data in related tables (uh yeah,
that'll help performance), or have to use separate forms for

adding/editing
which is more clicks and work hassle for the user as well as more

duplication
of form design elements.

For another thing, there is a bug that was supposedly fixed, but actually
isn't in which sometimes an ORDER BY clause in a subform or subreport

causes
an error. To fix it, it is necessary to remove the table name qualifier

from
the expression in the ORDER BY clause. Of course, the query builder

always
puts the table qualifiers on, and it's never obvious what's broken without
some digging.

In ADPs, any time you do anything slightly out of the ordinary in a
server-side query, the ADP gets confused. For instance, in my MDBs,

sometimes
I like to have a view that references a table in another database on the
server. I do this, for instance, to put tables frequently used to hold
temporary data in a database with TRUNCATE LOG ON CHECKPOINT so my backups
aren't filled mostly with irrelevant adding and deleting of temporary

data.
When you try to bind an ADP to this, it gets really confused beacause ADO

is
smart enough to try to look at the underlying tables, but not smart enough

to
look at them in another database on the server.

The ADP looking behind your stored procedures and views also makes it hard

to
do things that work fine in an MDB such as using a view for security where

the
user has permissions granted via the view that they don't haveon the

tables
directly. If you know the issue and are -very- careful, you can work

around
this. This is in the category of ADPs trying to think for you and thus

making
it very hard to use what should be typical rule enforcement on the

back-end.

I can't remember all the other issues right now, but I remember that there

are
several more.


Nov 13 '05 #21
So basically, ADPs are a way to do what MDBs can already do pretty well, only
with more things that don't work or are very flakey. OK, the ability to edit
server-side objects through the Access UI is great, but you can use an ADP for
server-side object development, and use the MDB for all the production
front-end forms, reports, and code.

On Wed, 26 Jan 2005 14:38:01 -0800, <aa*********@ho tmail.com> wrote:
ADPs are ready for primetime.

but they're difficult to implement, especially things like this:

1) forms against views is difficult/unpredictable
2) stored procs bind well to form, but it isn't very well documented
3) sql server doesn't have a crosstab query (yet)

hth
"Steve Jorgensen" <no****@nospam. nospam> wrote in message
news:sf******* *************** **********@4ax. com...
On Tue, 18 Jan 2005 07:38:50 GMT, "Neil Ginsberg" <nr*@nrgconsult .com>

wrote:
>A while back I posted a message re. using an ADP file with a SQL Serverback >end as opposed to MDB file with linked tables, thinking that the ADP file
>would be less problematic. The input I got was that the ADP would be just
>as, if not more, problematic; that ADO is far more limited than DAO,
>requiring a lot of workarounds; and that it would be better to stay witha >seasoned MDB file than to switch to an ADP.
>
>The database in question was inherited by me from someone else who
>implemented things in a less than ideal way, and he, himself, convertedit >from an existing database in another application. The database needs tobe >revamped, and we are looking to rebuild it from the ground up with
>additional functionality. So now the question is not staying with aseasoned >MDB as opposed to a new ADP; but, rather, which would be better forworking >with a SQL Server back end, an MDB or ADP file?
>
>Obviously if we go with an MDB file we can reuse many of the DAOroutines, >as appropriate. But the main concern here is performance: which one will
>provide the better performance, better data access, fewer strangeanomalies, >and so on. Development time isn't the main concern.


It's not just the develompment time, it's the unpredictabilit y of runtime
behavior. It's just fastly harder to deliver verifiably high quality code
with ADPs. They're too much of a hodge podge of hastily patched together
kludges. ADPs and ADO also introduce at least as many performance

bottlenecks
as performance improvments, and well-designed MDB client/server apps have

been
known to perform really well.
>The database currently relies in part on DAO and in part on stored
>procedures. Obviously moving more towards stored procedures would bebetter, >but there will probably still be a significant amount of code in thefront >end.


That's obvious, but not necessarily correct. Access works quite well

using
forms bound to DAO recordsets on linked tables. if you deviate from that,

you
might as well scrap Access altogether and implement custom GUIs in

something
like C# or Java - of course, that might really be your best answer if time

is
not an issue.

With respect to stored procedures performing universally better than

Access
queries of linked tables, it's simply not the case. In most cases, an

Access
query generates a prepared statement on the server side which functions

much
like a stored procedure would. When the server sees the same prepared
statement signature again later on, it will realize it can use the same

query
plan it computed for the statement previously - just like a stored

procedurem
only without the headaches of being unable to update via an Access bound

form.
>Any thoughts re. MDB vs. ADP or anything else related to this would be
>appreciated.


It's easier to get higher reliability and good performance with an MDB

than an
ADP - period. If time is not an issue, scrap Access altogether and write
hand-optimized code in a "real" programming language.


Nov 13 '05 #22
On Wed, 26 Jan 2005 14:41:56 -0800, <aa*********@ho tmail.com> wrote:
i believe that i am the person that made the depecrated statement... not
sure

ADP rocks.

Microsoft isn't taking this platform seriously; and they need to.


ADPs might rock if they did and fixed what's wrong with ADPs today, but MS
won't, so ADPs don't.

Nov 13 '05 #23
<aa*********@ho tmail.com> wrote in news:#v0xzf$AFH A.2392
@TK2MSFTNGP14.p hx.gbl:
1) only load a single record at a time and this should cut down on
complexity


Yes, I agree. ADPs are way better when one does not use the parts which don't
work consistently well. Throw out forms and reports and you have a
masterpiece.
This strategy also cuts down time spent in learning to almost nothing.

--
Lyle
--
use iso date format: yyyy-mm-dd
http://www.w3.org/QA/Tips/iso-date
--
The e-mail address isn't, but you could use it to find one.
Nov 13 '05 #24
"Lyle Fairfield" wrote
Yes, I agree. ADPs are way better
when one does not use the parts
which don't work consistently well.
Throw out forms and reports and
you have a masterpiece. This strategy
also cuts down time spent in learning
to almost nothing.


ROFL!
Nov 13 '05 #25
Lyle Fairfield <Lo******@FFDBA .Com> wrote in
news:Xn******** ***********@216 .221.81.119:

Yes, I agree. ADPs are way better when one does not use the parts
which don't work consistently well. Throw out forms and reports and
you have a masterpiece.


What is left?

Tim F

Nov 13 '05 #26

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

Similar topics

36
8390
by: Dag | last post by:
Is there a python module that includes functions for working with prime numbers? I mainly need A function that returns the Nth prime number and that returns how many prime numbers are less than N, but a prime number tester would also be nice. I'm dealing with numbers in the 10^6-10^8 range so it would have to fairly efficient Dag
9
2713
by: Greg Brunet | last post by:
In doing some testing of different but simple algorithms for getting a list of prime numbers, I ended up getting some results that seem a bit contradictory. Given the following test program (testPrimes.py) with two algorithms that both check for primes by testing only odd numbers using factors up to the square root of the value, where Primes1 is based on all of the existing primes so far, and Primes2 is based on all odd numbers, I would...
0
2397
by: AshifToday | last post by:
this was my and my frineds little project in earlier classes, the program seperates the composite and prime numbers in two sections of the screen ===================== /* This program has been made by A & A Group. Muhammad Ali: Roll # 1462 Class A-2 , B.Sc.(Hons.) in C.S.
11
1478
by: CMM | last post by:
I am so disappointed in VS2005. The "little things" wrong with it are just mind-boggling. Boy, I'll be so mad if I have to wait a year for the ".1" release that fixes all the bugs in this obvious beta product. This (received today) is just one of the many examples of why ASP.NET 2.0 was totally not ready for prime time. http://www.kbalertz.com/Feedback_911717.aspx The "workaround" they cite isn't a workaround AT ALL. They're actually...
10
4431
by: Joel Mayes | last post by:
Hi All; I'm teaching myself C, and have written a prime number generator. It is a pretty inefficient implementation of the Sieve of Eratosthenes to calculate primes up to 1,000,000. If anyone has time to critic and offer my some feedback I'd be grateful Thanks Joel
6
1641
by: zacariaz | last post by:
Once again i have tryed my lyck with classes and it seem that im getting the hang of it, but before i get too self confident, i would like to get an expert oppinion. I have made a working primeclass, it isnt finished, but it should show if im making any major mistakes and errors. @code start: #include <vector>
60
1950
by: rhle.freak | last post by:
Here is my code to generate prime numbers.It works absolutely fine when the range is *not very large*. However on initializing i with a large integer it produces erroneous results (some numbers ending in 5 ..which obviously cannot be prime numbers) can anyone please help me out with the reason?? /*Generate Prime Numbers*/ #include<stdio.h>
7
4897
by: newstips6706 | last post by:
1, 2, 3, 5, 7... PRIME Numbers ________________________________ Definitions What is a PRIME Number ?
8
2306
by: Ron Garret | last post by:
The wsgiref module in Python 2.5 seems to be empty: $ python Python 2.5 (r25:51908, Mar 1 2007, 10:09:05) on darwin Type "help", "copyright", "credits" or "license" for more information. So... is wsgi considered ready for production use, or is it still on the bleeding edge? And if the former, which implementation should one use?
0
8604
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9160
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8897
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8862
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7729
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6521
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2331
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.