Re: database method?
From: Bob Butler (tiredofit_at_nospam.com)
Date: 03/04/04
- Next message: chan: "Re: [Vb.net question] how to apply online update function into program (the effect just like Norton system work live update)"
- Previous message: Dylan: "database method?"
- In reply to: Dylan: "database method?"
- Next in thread: Dylan: "Re: database method?"
- Reply: Dylan: "Re: database method?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 4 Mar 2004 06:45:16 -0800
"Dylan" <anonymous@discussions.microsoft.com> wrote in message
news:2E6B3312-27DB-46BA-BF83-C2263948ACCF@microsoft.com
> I'm writing a stand-alone application to connect to a database
> created with Access 97.
>
> The application is going to need to do the usual actions such as
> view, edit, add, delete and search. I'm going to want this
> application to run on a system that does not have Access installed
> (is this possible?).
Yes; you will need the Jet engine installed but the user does not need
Access to work with the MDB from VB.
> The mdb file will reside on the system that the
> app is running.
Good; MDB files over a network are *slow*
> What is the best database access method to use OBDC, DAO, RDO,
> OBDCDirect, OLE DB, ADO?
If it will *always* be and MDB then DAO is the best choice for performance;
if it is potentially going to migrate to SQL or Oracle or anything else then
ADO would be more flexible.
> Let's say that in the future I decide to set up a central database to
> which client software can connect, what will be the best access
> method then?
Move it to MSDE or SQL or some other real client/server database engine and
use ADO. If it *must* stay as an MDB then I'd look at creating an ActiveX
EXE or some other server process that runs on the system hosting the MDB and
make your calls through that. Jet is a poor choice for client/server
operations.
Whatever you do, wrap all your database access methods into a class that
handles all operations including formatting dates properly in queries so
that if you do need to change from DAO to ADO or whatever you can just
rewrite that one class and, at least for the most part, leave the rest of
your app alone.
-- Reply to the group so all can participate VB.Net... just say "No"
- Next message: chan: "Re: [Vb.net question] how to apply online update function into program (the effect just like Norton system work live update)"
- Previous message: Dylan: "database method?"
- In reply to: Dylan: "database method?"
- Next in thread: Dylan: "Re: database method?"
- Reply: Dylan: "Re: database method?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|