Results 1 to 7 of 7

Thread: Best way of saving data

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2007
    Posts
    43

    Best way of saving data

    Hi, I am writing a windows application that will be saving a lot of data, and I have designed a database for it in access. However when I go to distribute the application, won't having an access database attached as the backend allow users to just open it and view all the data?? I would really like to keep the data in it confidential. What's the best way of doing this?? Should I even just save the data, say as binary, to .dat files instead? If I do this then I take it I'll have to create datasets and tables in memory at the start to load all the data into. Would this be quicker than using a database?

    Any help much appreciated...

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Best way of saving data

    Welcome to the forums.

    Is this an internal application for your company only, or are you putting it on the web?

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2007
    Posts
    43

    Re: Best way of saving data

    Hi, it's a windows application that I am doing in my own time that I will be putting onto the web when finished to be downloaded. It has a lot of data associated with it that I would like to secure if possible and get the fastest data access times, so I don't know if it would be best to use Access - I assume that most people can read/write to Access without downloading extra files/drivers - or SQL Express - but I assume additional files will be needed to access SQL express? - or use a binary file or something like that??

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Best way of saving data

    You could change the file extension, no need to keep it as MDB.... they would have to know it's an access DB and change it back to MDB in order to open it. Also, in order for them to open it directly (not using your app) they would have to have Access installed.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: Best way of saving data

    I would use a binary file.

    If you put all your data into user defined structures (type), and arrays, you can access the data faster than a database. With a database you have an extra layer. BUT.... if you need to process the data (sorting, grouping, make reports... etc.) then a database will definitelly be better.

  6. #6

    Thread Starter
    Member
    Join Date
    Jun 2007
    Posts
    43

    Re: Best way of saving data

    Yeah, I'll be doing a lot of sorting, reports, binding to data etc. so I suppose a database is the way to go... I could also then change the file extension as suggested and password protect it as well...

  7. #7
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Best way of saving data

    Access "password protection" is a joke. I don't even bother to save a program to break it, because it only takes a few minutes to generate the necessary data and write the program.

    I'd encrypt the data, using whatever method you like, and change the extension. Those methods (even for a trivial encryption method) are much more difficult to break than Access' password.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width