Database driven application - reality check

Status
Not open for further replies.

qball

Ars Tribunus Militum
2,238
I was given the task of doing an overhaul on a several year old Access database that a small company is using for its operations. It had an elaborate frontend which was written up using forms and VBA. The design of the db itself was simply awful and didn't fit the operations model of the business all that well either. On top of this the front end was buggy, so I decided that starting from stratch was the way to go. Currently the data files reside on a file server and a number of different computers access them through the network. Here are some specs of the new design:

About 20 - 30 tables with 10 or so of them being major players.
~50k records in the larger tables, needing headroom of ~150k for some of them
Up to 10 concurrent users during peak times.

My judgement says that Access isn't going to cut it and that I should use a more industrial strength RDBMS (SQL server would be it). I also think that the front end would be easier to program in a standalone setting because working under Access I have been loading forms up with subforms so much for flexibility that they don't load very quickly (seems that Access isn't smart enough not to load invisible forms). I'm not very experienced with databases, so I just wanted to bounce my assumptions off of some of you there who might have more experience in this sort of thing. Am I going to find a lot of difficulties in doing what I want to do?

-Q
 
I had to do the same thing at my job this year. We had a buggy and poorly designed Access db done by a 3rd party that wasn't working out very well and was impossible to maintain.

I ended up going replacing the whole mess with a PHP/PostgreSQL database that everybody just loves now (as it actually works and is much faster) running on Linux. I chose that road because our computing budget is very low and because I am much more familiar with the linux/unix side of the server world than I am with the MS side.

ASP and SQL server should get you to the same place and may even be easier to create rather than having to put up with the maze that is Access.

Good luck. :)
 

Dandy Andy

Ars Tribunus Militum
2,458
Hmmm...

This looks like a familiar theme:

(1) Office junior writes small application in Access that simplifies some aspect of his employer's business in order to score Brownie points.

(2) Application grows slowly until functioning of business depends on it.

(3) Individual from (1) bales out with his new-found programming skills.

(4) Company teters on the brink of collapse due to inadequacies of either the application or Access itself.

(5) Unlucky "volunteer" has to re-implement company's I.T. infrastructure, given only the existing, poorly-designed system as a starting point. No documentation of any use, of course!

And this is where YOU come in...

:eek:
 

qball

Ars Tribunus Militum
2,238
(1) Office junior writes small application in Access that simplifies some aspect of his employer's business in order to score Brownie points.

(2) Application grows slowly until functioning of business depends on it.

(3) Individual from (1) bales out with his new-found programming skills.

(4) Company teters on the brink of collapse due to inadequacies of either the application or Access itself.

(5) Unlucky "volunteer" has to re-implement company's I.T. infrastructure, given only the existing, poorly-designed system as a starting point. No documentation of any use, of course!

And this is where YOU come in...

Yep, however what makes this particular situation worse is that it wasn't an office junior, but rather someone specifically contracted to design the system currently in place. Bad model design, buggy code (users have a 17 step documented process for entering an invoice because if you do something out of order or change certain things it corrupts the database), bad interface. This is in addition to Access limitations in that certain tables are growing into the 30k range for rows and are becomming clunky, especially over the network.

Why ASP? Seems to be that ASP is primarily used for web based apps. I was planning on creating a small standalone application using the .NET framework. Problem with this is that software and books are just appearing on this stuff now and I don't think everything will be finalized until around Feb. I've been doing research on ODB.NET and the .NET framework in general it looks like it will make it easier/faster for me to implement an application than using the previous generation. The company is a Microsoft shop anyway so I find going with a complete MS solution to be conveinent even if it is going to be very propriatary.

-Q
 

Pont

Ars Legatus Legionis
26,160
Subscriptor
Screw .Net.

It's not ready yet.

Don't use BETA software for real projects unless they have a feature you absolutely need.

Use Delphi (or VB if you must)to whip up a native client or just do it as a web-app. If you do it as a web app, you'll never need to distribute upgrades to your clients or worry that clients aren't using the correct version or make sure your clients have their ODBC drivers set up properly, etc.
 

amyklai

Ars Tribunus Militum
2,061
Well, actually 150k records should not be a problem for Access (assuming you're not using v 2.0 or the likes).

However, I'd only use Access if there's a feature you need (in some cases the VBA Eval function can be very practical for switching out calculation formulae etc)

I'd say write a seperate program using MSDE. That way, you can always switch to SQL Server if needed.
 

johnzilla

Ars Scholae Palatinae
1,150
reboot said:
for 150k rows, you definitely need SQL server.

Says who? 150K rows isn't large at all, in my opinion, and definitely not an absolute requirement for SQL Server.

I just finished a small project making minor tweaks to an application written in ASP against an Access database. The database is ~100 MB in size and has hundreds of thousands of rows. Granted, SQL server would be "better" (better is relative), but the application works very nicely on an intranet with 30 simultaneous users and a dual P3 500 server with 512Mb RAM.

Would I have chosen Access if it had been up to me as the original developer? Probably not, but in this particular scenario it's moot. Access does the job adequately given the resources at hand.
 

johnzilla

Ars Scholae Palatinae
1,150
Even per table, I still find that acceptable. Depends on what the tables are doing (read only, read/write, heavy access, light access, how big each record is, etc).

Granted, SQL Server is preferable over Access for a production/mission critical application. My point was simply that there are no hard and fast rules, and definitely no absolutes. Sometimes the "best" solution or answer is unacceptable for various reasons (cost, resources on hand, etc).
 

slok

Ars Scholae Palatinae
619
actually, doesn't Access have some kind of limit like up to 2GB or
something.

maybe another approach is to see what kind of budget can you get
for this project. For all you know, the budget might dictate whether
you can purchase additional software.

also consider, whether you want to go around installing the new application or do you want it to be a web application; in which case you
do not have to worry about updating the libraries down the road.
 

qball

Ars Tribunus Militum
2,238
Well, this project is being done to coincide with an upgrade cycle in both clients and servers. So the budget is up there. Basically, the person who I'm designing this for wants it to last, that's his priority. His upgrade cycle for client machines is coming up, and he's delayed his upgrade cycle for the server so that he could get one that had what it needed for this project. Additionally, he wants to clamp down on security, both in terms of people only having access to data that they need to, and in terms of making the application more secure fiancially (there are currently a few subtle loopholes in which an unscrupulous employee could steal from the company and it would be difficult to detect).

I think that a platform move to an NT domain across the board would be a good first step. And that a move to SQL server would be natural for security because of its integration with the domain.

A lot of people are mentioning a web based app for distribution purposes. I find this interesting, does anyone have a link to some literature regarding this practice (web based applications for internal apps)? I don't think I'll go this route for simplicity's sake - The upgrade cycle means that I'll have uniform clients to work on and there's only a handful of client stations, 10-15 (with this not likely to increase), so distribution won't be a major handful.

-Q
 

Pont

Ars Legatus Legionis
26,160
Subscriptor
With a web-app, you program it once and it will continue working even if the users change platform completely. Now, if you try and do fancy, IE-only shtuff, you'll run into problems with client-compatibility later on.

Now, there are some apps that work well as web-apps and some that don't.

If it requires interacting with anything other than text, it may not be easy to do as a webapp.

If the user is going to be doing much more clicking than reading, then it may not make as much sense to do as a webapp (like Excel or Word).

However, a "click some options and get back a tabular report" type application should almost always be a web-app.
 

reboot

Ars Legatus Legionis
10,818
Originally posted by johnzilla:

reboot said:
Quote: " for 150k rows, you definitely need SQL server. "

Says who?

well, obviously me ;)

I'm not talking about 150k rows total, I'm talking about around 150k rows per table for some of the larger tables

That is what I understood so depending on volume of transactions and operations on tables (joins) you can forget access.

this kind of volume is large enough to require some optimization even on a full-blown RDBMS.
 

russ-iha

Ars Praefectus
4,407
Subscriptor
Pont, I must respectfully disagree.


There are companies who built production systems on Beta 2 of .NET and it works just fine. Microsoft has some of their new pages running on RC 1. Granted, beta 1 had issues -- but the runtime itself rarely crashed or had other issues. You'd be VERY hard-pressed to find a show-stopping or stability issue in RC 1. In fact, unless you can point me to some documented issue that would apply in this case, I'm gonna have to call you on this one. RC 1 is fit for production use.

If you are squeemish about it, you can always write the app as server-side ASP.NET -- then you still get the nifty forms designer and the ADO.NET stuff, but its still running as a web app and (despite some false claims) the clients get only HTML -- no executables needed. This also eliminates the need to distribute the CLR to the clients, although you may want to that way you can distribute other .NET client apps in the future without any fuss.
 

mauerj

Wise, Aged Ars Veteran
121
Go with .NET. A few advantages over the ASP approach:

1. Much better IDE environment
- ability to debug across processes, servers, languages, etc.
- much better deployment options
2. Performance puts ASP to shame
3. Much cleaner code
- ASP is a hack job of script crammed into a web page
- ASP.NET keeps server-side and client-side code separate
4. No DLL Hell

Also, with .NET you have the ability to deploy real EXEs to the client, which are totally contained by .NET's security model. User clicks on a link, an EXE comes up, .NET handles all the crap of making sure they're running the latest version, etc. If you are questioning using the web approach, don't use it... you can build a "normal" WinForms app and just use the web for deployment.
 

DaleDBeast

Wise, Aged Ars Veteran
172
qball, Several times I have been in exactly that position you are describing. Being brought in to "do something" about a patched together app. And I usually have come to the same conclusion you reached, to do it over from scratch.

I agree that a few tables with 150k rows should not be a problem for Access, but I would still prefer to use SQL Server for new development. The greatest strength of a Win32 Visual Basic app is also its greatest weakness: problems with 3rd party controls. These grids and widgets allow you to put together your application really quickly, but many times its all downhill from there because of quirky behaviors, incompatibilities, versioning problems during and after installation, bugs, and patches. It gets old really quickly, running around to everybody's machine to apply patches and fixes. Not to mention the effect this has on the users (clients).

So I tend to agree with russ-iha, .Net's ASP was a nice solution for me recently also.
 

slok

Ars Scholae Palatinae
619
I have seen some mention of .NET here and of course usage of .NET despite it has not gone gold etc...

why not take a fresh perspective and investigate other platforms that
is already available?

1. MS SQL
- we can definitely nail this down as the database to use given
the size of the company, the server etc

2. Development Platform
- much of it revolves around .NET

why not look at Clarion from SoftVelocity.com or even REBOL?
 
Status
Not open for further replies.