Is there any utilities that make a SQL Script
for CREATE TABLE and set CONSTRAINT
for index fields and relationship compatible
with Access 97 and 2000? Like open a *.mdb
and create a script for the tables and
relationship with tables automatically.
It's possible to run that's scripts in Batch Mode
like the SQL Server do or we must run one
of each time?
With the features of Access, it is very likely that someone here can suggest
a _better_ way to solve most problems than using DDL to create tables -- but
only if you explain what you are trying to accomplish. So far, you have
described how you want to accomplish it, and defending that approach when
anything else was suggested, but you have not said what you are trying to
do.
I've used Access since the very early days of Access 1.0 and I have solved a
lot of business problems with it, and, you know, I have never faced a
business problem for which the best, or even a realistic, solution included
building tables and relationships with DDL -- not one. You aren't likely to
get as good help here on Jet DDL as on many other subjects, simply because
of the fact that most of us never use it, and most of the rest use it
rarely.
So, just for a few posts, let go of the idea that you _have to_ use DDL,
that you _have to_ create the tables and relationships anew for each run,
tell us what you are trying to accomplish from a business or requirements
point of view and see if we can't arrive at a good solution.
Oh, one more thing, tell us where the data is coming from that you intend to
manipulate in the tables and relationships you create -- is it coming from
some electronic source, or does some key it in, or ???
Larry Linson
Microsoft Access MVP