2

I've seen a few answers to this, but all of them use ADOX which I don't exactly know how to use. Is it possible to do it entirely with OLEDB? If so, how? Thanks in advance

5
  • Is it creating or using or both Commented Jun 30, 2015 at 19:18
  • Which version do you want Commented Jun 30, 2015 at 19:40
  • any versio will be enough Commented Jun 30, 2015 at 19:43
  • Everything I see is ADO and msoffice foobar'd many peoples devboxes mine included for OLEDB 12.x or 14 I forget. Not much focus out there on c# OLEDB. Commented Jun 30, 2015 at 21:08
  • Perhaps you can describe the big picture (like flexibility on the fly). No lack of ADO examples out there. Maybe if you had a stub of an MSACCESS db skeleton you would be all set. Maybe not Commented Jun 30, 2015 at 21:10

1 Answer 1

1

The database itself (i.e. the empty .accdb file) cannot be created via OLEDB.

But once you have an empty access file, you can connect to it via OLEDB, and then you can create tables, views, etc. by executing create table statements.

I once did a solution where I packed an empty database directly into my resources and copied it at runtime into a user's directory.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.