Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 701
  • Last Modified:

Program Data Storage

Hi Experts,

I'm new to C#; my experience is primarily with Access VBA.

I have developed an end-user application in Access that may be marketable.  Ideally this application would be 'stand-alone' and not an access mde etc, which would require users to own Access.  What I'm having a hard time understanding is how might a program be designed in C# which would not require a back-end data store such as sql server, access, etc. which would seemingly add to the cost.

So the question is, what is the best way to store 'user' information -- the data of the program -- in a program developed in C#;  also I'd welcome suggestions about any reference books that would cover this topic.

Thanks,
deedub84
0
deedub84
Asked:
deedub84
  • 2
1 Solution
 
OBonioCommented:
You can store it how you like is the real answer here.  Flat file may be an option (ie, serialised objects persisted to file) or maybe XML.  It depends what you want from the application.  Do you need database type functionality?  Indexed retrieval of data?  Referential integrity?
0
 
deedub84Author Commented:
Having cut my teeth in the access / sql server world; I'm tempted to say database type functionality.  But the application really is straightforward.  I have a couple of tables that store the data in the Access version.  There is some user selection of certain lines for printing.  Probably the biggest need is some of the data (and therefore probably all) the data would need to be secured in the sense I wouldn't want anyone just to be able to open up the data and be able to read it.  The application is more along the lines of a mini app versus something with full functionality.

Ultimately, I'm so new to this part of the programming world, some pointers to good references or primers (if they exist!) would be great.
0
 
OBonioCommented:
Isolated storage may be a solution here :

http://msdn.microsoft.com/en-us/library/3ak841sy(VS.80).aspx

This will place the data in an obscure place which is good.  But it won't be encrpyted.  The AesManaged class can do that :

http://msdn.microsoft.com/en-us/library/system.security.cryptography.aesmanaged(VS.95).aspx

If using the AesManaged class, then just using a XML file format will be fine I  think.  Depends how much data you are expecting to handle.

0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now