views:

604

answers:

4

How i Create Access Database at runtime in C#?

A: 

The Microsoft article here will help you.

Kindness,

Dan

Daniel Elliott
+2  A: 

This article from John Russell Plant explains how you'd do it in specific detail with code samples. There are three steps:

  1. Create the catalog.
  2. Create the tables.
  3. Release the relevant COM objects.
John Feminella
I will suggest this, compared to my approach. :)
Mahin
+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
+5  A: 
Sauron
I think John Feminella has posted link to this article already in his answer.
Mahin