Sometimes there's the problem, to ship your App with a less than simple store, which contains "structured static Data" (e.g. a small catalogue-DB or a DB which contains the word-archives for your small spellchecker or something like that)...
If possible you will have the additional requirement, to ship it within your Executable (or Dll or OCX) - directly as a Binary-Resource (a "compiled into" ByteArray if you want).
Ok, one could do that e.g. with a JET-DB - (and compress and encrypt the FileContent into Bytes) - but in this case you'd have to "decrypt and unpack" into the Filesystem, to be able to use your DB-Data from the compiled-in ResourceBytes.
That last step (the FileSystem-Placement) is often not wanted - but the comfort of a DB (fast queries, joins, filters etc.) shall also remain possible - OK - with SQLite as the JET-alternative one can fullfill that need, since it allows true InMemory-Databases.
The following Demo contains a small example which is acting on NWind.db-content and performs both directions:
The Sources depend on the vbRichClient5-Project-Reference (Download available here: http://vbRichClient.com):
Here comes a ScreenShot:
![]()
And here the Project-Download-Link:
http://vbRichClient.com/Downloads/SQ...omResource.zip
Have fun with it...
Olaf
If possible you will have the additional requirement, to ship it within your Executable (or Dll or OCX) - directly as a Binary-Resource (a "compiled into" ByteArray if you want).
Ok, one could do that e.g. with a JET-DB - (and compress and encrypt the FileContent into Bytes) - but in this case you'd have to "decrypt and unpack" into the Filesystem, to be able to use your DB-Data from the compiled-in ResourceBytes.
That last step (the FileSystem-Placement) is often not wanted - but the comfort of a DB (fast queries, joins, filters etc.) shall also remain possible - OK - with SQLite as the JET-alternative one can fullfill that need, since it allows true InMemory-Databases.
The following Demo contains a small example which is acting on NWind.db-content and performs both directions:
- the "packing-process" from a filebased DB -> ending up with compressed and RC4-encrypted ResourceBytes
- and the opposite direction (decryption/decompression/InMemory-DB-Creation from a plain ByteArray)
The Sources depend on the vbRichClient5-Project-Reference (Download available here: http://vbRichClient.com):
Here comes a ScreenShot:

And here the Project-Download-Link:
http://vbRichClient.com/Downloads/SQ...omResource.zip
Have fun with it...
Olaf