The script code to open a oracle database, or ms-access, or mysql, or ms-sql
server is going to depend on your web tools.
So, you have to go to your vendor (or correct newsgroup).
Ms-access has absolute NOTHING to do with web based applications.
So, you are in the wrong place, wrong tools, and wrong approach....
what would you recommend to use?
Albert D. Kallal ëúá:
would recommand this.
should read:
ms-acceess is NOT thread safe, and I
would NOT recommand this.
You do not want to use word, or excel, or ms-access as a automaton object on
a web server, because you can have mutilate instances (more then one user)
accessing the web site. it is not stable, and is a obvious problem to anyone
who is familiar with computers. (That problem is that ms-access (or word) is
designed for the desktop, and being interacted with a SINGLE user and a
mouse. Ms-access is not designed to be "run/automated" by a web site. It is
just complete the wrong approach. access is a single user desktop interface
application, not something for a web site. Access is part of office, just
like word, or excel...these are NOT web tools.
Common sense would dictate that then you use the DAO example to read data,
since as above mentioned, ms-access is not a web product, nor are you going
have a great stable product if you choose to automation ms-access. So, you
would use the examples that read via DAO. And, take heart, those examples,
are just that...examples, and are vbscript. I don't know what development
tools and platform you are using (it is only you later responses that you
revealed that you not using ms-access at all, you don't need ms-access, and
you now revealed that you are building a web based system).
So, to read/use data in a web based system, you are MUCH better off to use
ADO in place of DAO (you can ask about this difference in a appropriate
newsgroup that is relevant to YOUR CHOICE of development tools that you are
currently use for the web system).
So, for web stuff, you LIKELY will use ADO. ADO is a data better data object
then DAO for web stuff. ADO allows you SAME CODE to work with oracle, or
JET, or sql server. (the code is not so tightly tied to the database engine
as compared to DAO).
I don't know what tools, and development platform you are using, but *most*
code to read data is going to be the same if you use ADO. (this once again
simple means that you need to ask the question in your appropriate
newsgroup..as the code will be the SAME for JET, or sql server or whatever
data engine you choose).
..
So, check in your approach newsgroup for the given tools you are using (but,
you certainly don't need, nor are using ms-access anymore here).
You *can* use the JET database engine for light weight web sites (and, as
mentioned, you don't need ms-access). However, with so many free database
engines (including several from Microsoft), there is little, if any
advantage to using JET for a web site these days (so, once again, wrong
tools...wrong newsgroup)....
You also don't mention what development tools and languages you chosen to
build the web site. My examples were vbscript, and were answered originated
to a windows user, not a web site developer. Those examples as such don't
need a web server, or even web services to run.
You would be best to choose a scripting language you are familiar with, and
ALSO ONE THAT is supported by the web tools you plan to use.
If you not made that choice, then you have a wide open choice. (the asp.net
tools would be a good starting place). So, pick your web development tools,
and then go from there....questions such as reading a mdb (or oracle, or
mysql, or ms-sql server) are much minor in the scope of things, and the code
to read that data and preoduce HTML is going to be the same.
good luck..