How i Create Access Database at runtime in C#?
+2
A:
This article from John Russell Plant explains how you'd do it in specific detail with code samples. There are three steps:
- Create the catalog.
- Create the tables.
- Release the relevant COM objects.
John Feminella
2009-09-07 11:44:26
I will suggest this, compared to my approach. :)
Mahin
2009-09-07 11:46:29
+2
A:
Create a blank access database and store it in your resource files.
Now whenever you want to use it, fetch that database from your resources and copy it to wherever you want, rename it to whatever you want and execute your database setup script to create default tables and load values in them.
Mahin
2009-09-07 11:45:13