65.9K
CodeProject is changing. Read more.
Home

Create a blank Jet database

starIconstarIconstarIconstarIconstarIcon

5.00/5 (1 vote)

Nov 18, 2010

CPOL
viewsIcon

8115

another way is to first create a empty db in access then read its bytes into an array and export them as a string. Then hardcode that string into a class that creates the the empty database by converting the hardcoded string back into a byte array and then writing it to disk as a mdb...

another way is to first create a empty db in access then read its bytes into an array and export them as a string. Then hardcode that string into a class that creates the the empty database by converting the hardcoded string back into a byte array and then writing it to disk as a mdb file. It's similar to the method that you are suggesting here. But It can be wrapped into a reusable class that won't require importing a mdb file into the project. It's not better, it's just different.