Re: Creating a new Access database file (.mdb) in .NET/C#
- From: Frnak McKenney <frnak@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 03 Nov 2007 02:17:47 -0000
Hi. Thanks for responding. I'm sorry it took me so long to get back
to you.
On Mon, 29 Oct 2007 10:21:31 -0500, Cowboy (Gregory A. Beamer) <NoSpamMgbworld@xxxxxxxxxxxxxxxxxx> wrote:
You can create the file with the Office bits.
Um... did you have any particular "bits" in mind?
... If you want to avoid
this (as I have in the past), create an empty shell MDB file and you
can then run your DDL commands against it. If the database
"created" always has certain tables and seed values, I would make
the "shell" with those tables and that info already in it.
Sounds good. Up until now, all the databases (not many) have been
manually created using COPY or a GUI equivalent; this would simply
automate the process.
The "down" side, of course, is that if the "prototype" file goes
missing the user will need to recover it from some place. Hm... I'm
using an "MSI" install, so presumably he/she/it could simply run an
Add/Remove Programs "Repair" operation to recover it. (Note to self:
_Test_ this! <grin>)
To do this, copy the MDB file (shell) to a folder and run the DDL
against it to finish set up.
This only answers part of your issue, of course, but you can add
this method to the case where the file is missing or wrong, etc.
Well, if I can't create a new one "from scratch", a missing file
will present some problems, yes? <grin!>
Thanks again for the suggestion.
Frank
--
Cats are smarter than dogs. You can't get eight cats to
pull a sled through snow. -- Jeff Valdez
--
Frank McKenney, McKenney Associates
Richmond, Virginia / (804) 320-4887
Munged E-mail: frank uscore mckenney ayut minds pring dawt cahm (y'all)
.
- Prev by Date: Re: xcopy deployment to sql server DTS package in restricted envir
- Next by Date: Re: Creating a new Access database file (.mdb) in .NET/C#
- Previous by thread: Re: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
- Next by thread: Re: Creating a new Access database file (.mdb) in .NET/C#
- Index(es):
Relevant Pages
|