Best place to store application database

Where is the best (most secure) place to store database files that are application specific?
I'm writing a kiosk application that runs on Windows 7 x64 as a desktop application.  A non-privileged user will be logged in to Windows and the application runs as this non-privileged user.  It relies on 2 MySql database files, one with read-only
access and the other with read-write access.  Where is the best place to store these 2 database files such that only the user that the application is running as (the currently logged in user) has access to them?  My concern is keeping them secure
if someone manages to log into the machine as a different user.  Am I best to put them under %USERPROFILE%\AppData\Local\<MyCompany>\<MyApp> ?

Yes.  You should programmatically obtain the directory by calling SHGetKnownFolderPath() +
FOLDERID_LocalAppData
https://msdn.microsoft.com/en-us/library/windows/desktop/bb762188(v=vs.85).aspx
By Default the only users with access to a user's %AppData% directory are LocalSystem, Administrators and the user itself.  A different user could not access the directory unless the user was an Administrator who was elevated.
thanks
Frank K [MSFT]

Similar Messages

  • Where is the best place to store Contacts in order to later print labels and such?

    Where is the best place to store contacts in order to later print labels etc?

    I found this excellent article last week describing how to print labels from your Mac's Contacts application:
    How-to: Print customized address labels for holiday card envelopes ...

  • Where's the best place to store email templates?

    Hi all;
    In a web app I store all my email templates in a files folder in the web app. Can't do that with a worker in a cloud service - no files. So where's the best place to store them? In a BLOB? And if so, is there a way to have files in my project get automatically
    written to BLOB entries when I publish?
    thanks - dave
    What we did for the last 6 months -
    Made the world's coolest reporting & docgen system even more amazing

    Hi,
    I think we could use azure blob to save files.
    >>is there a way to have files in my project get automatically written to BLOB entries when I publish?
    If you choose azure cloud service, you could write the upload code at role onstart method. If you choose Azure website, please consider use azure webjob to do this, refer to
    http://azure.microsoft.com/en-us/documentation/articles/websites-dotnet-webjobs-sdk-get-started/ for more details about webjob.
    Regards

  • What is the best place to store salts

    Hi,
    I'm using a combination of flex ,CF and MS SQL
    Where is the best place to store salts for user passwords?

    Hi,
    Table is good if "constant" might change so you can create APEX form to maintain those.
    You could also use package specification just for constants e.g.
    CREATE OR REPLACE
    PACKAGE MY_GLOBALS
    AS
      g_const_1 CONSTANT DATE := TRUNC(SYSDATE) + 365;
      g_const _2 CONSTANT VARCHAR2(30) := 'somestring';
    END;
    Then you can refer those in procedures, functions and APEX processes like (package_name.constant_name) MY_GLOBALS.g_const_1.
    Regards,
    Jari

  • Best place to store FCPX projects?

    I wanted to find out where is the best place to store FCPX projects? I import the footage/audio to a external harddrive, but save the projects/render files to computer harddrive. Should I save the projects to the external harddrive where the footage is? Or does it even matter?

    See this post from this forum.
    https://discussions.apple.com/message/16411405#16411405

  • Best place to store resultset of a Web Application

    Hi
    The setting:
    I have a Web application - The servlet accesses the backend and populates resultset. The results should be stored in beans so JSP can access them and display them.
    The database resultset is temp and specific to each user or each request and it either is used across session or across request.
    Question1:
    How do I store the resultset in beans ? Should I create a list or arraylist? or there are other specific beans that handle such requests? I am just familiar with beans that set or get basic type vars like integers and strings
    Question 2:
    When resultset is used across session or across request, what is the best option to store them in? Meaning in each case what is the best option?
    I really appreciate your advise to make sure my application is set correct from the beginning. If this is not the correct forum to send it to , kindly pointout the correct forum so I can send it.
    Yara

    I just meant if it should be in a list/array list or
    some kind of bean .... I was suggesting a Collection of DTO's. "Bean" is a global term for a class having private properties and public accessors/mutators. DTO's follows this pattern with the goal to transfer data between the data tier and the business tier.
    Do you recommend I use JSF ?
    will this enable easier access to display the results
    in tabular formats ?
    Or I can get same results using the model of
    servlet/jsp/bean without JSF?Or I recommend it? Well, it depends on your requirements, knowledge and time. You can write it all using plain vanilla servlets and JSP, but you can also consider a MVC framework, which is generally a better choice for an enterprise webapplication (better maintainability, reuseability, etc). If you knows nothing about servlets and JSP, I rather recommend you to learn that first before using any MVC framework. JSF provides the h:dataTable component which eases the displayment of a Collection of DTO's. In JSP you can use c:forEach to iterate through a Collection.

  • What is the best place to store global constants?

    Hi,
    I want to store some contants and access it through procedures and functions, what would be the best place to do this? I thought substitution strings would work, but it isn't working for me in my procedures. Can we use Substitution string in compile code such as procedures and functions? I use SQL developer to write procedures.
    Cheers

    Hi,
    Table is good if "constant" might change so you can create APEX form to maintain those.
    You could also use package specification just for constants e.g.
    CREATE OR REPLACE
    PACKAGE MY_GLOBALS
    AS
      g_const_1 CONSTANT DATE := TRUNC(SYSDATE) + 365;
      g_const _2 CONSTANT VARCHAR2(30) := 'somestring';
    END;
    Then you can refer those in procedures, functions and APEX processes like (package_name.constant_name) MY_GLOBALS.g_const_1.
    Regards,
    Jari

  • Best place to store game currency

    Hi, where would be the recommended place to store game currency i.e coins?
    ApplicationData::Current->RoamingSettings
    Looks good since this will sync between devices.  However, I get intermittent failures with
    'The RPC server is unavailable.'
    This would be bad if the user had just bought currency.  Also, I like this to work correctly if the user should drop offline for whatever reason,
    I'm guessing this will fail if the user loses connection.  So should I write to both local and roaming settings?
    Finally, if the user does not have a microsoft account, will this work, and if they install the game before they bind it to a microsoft account, will it still work?

    Roaming should be fine. That saves locally then since in the background. The user doesn't need a connection, though it won't roam until there is one.
    The user needs an account to install the app, so that won't be a problem

  • Best place to store a subject's name

    Would it be better to put a subject's name under the People keyword or to put it in the caption?
    I am used to iViewMedia Pro and this is really different for me.
    Suppose I want to find all images of Mary Smith? What's the best way to make sure I find them all in Aperture?
    This is really a whole new way of working but I am starting to like it -- maybe .

    David,
    I'm in the same boat and thinking the Caption field is the best place as you can select it to show in the view options for both the main and grid viewers. It will be interesting to hear other thoughts on this.
    Sam

  • Where is best place to store birthdays ?

    Where is the best place to record people's birthdays  for the year ?  So I don't have to record every  year ?

    I use the calendar that comes with your iPhone. It has a feature that allows you to repeat the event yearly, and it has reminders as well. For example; lets say my son's name is Sam.....I open the calendar to his birthdate, type in.."Sam Smith - B/D" (2000). I then show the event as an ALL DAY event, next I show it to REPEAT YEARLY, then I select a 1st re minder for one week earlier, and the 2nd reminder on the day of the event ( the default time is 9:00 AM....but you can change this>. Hope this info is helpful.

  • When group-working from SAN, where is the best place to store Cache Files, the Cache Database, and render files?

    I have a small post production house, and we are spinning up into editing our first series. We're all working from a SAN, and sharing projects and sequences via the Media Browser. It's working great so far, but we've been having issues (could be user error) with trying to figure out where best to store the Media Cache database, the cache files, and the preview files so when a project is moved from one machine to another, it doesn't constantly have to re-conform all of the media in the project.
    We have a very large master project, as this is a documentary style show, so there are hours and hours of clips.
    When I open a project on a new or different machine it has to conform EVERYTHING in the project again.
    Where should I store all these conform and cache files so that new people can get started working without having a machine literally be unusable until the conform process finishes?
    Thanks!

    Hi Jon,
    I have a small post production house, and we are spinning up into editing our first series. We're all working from a SAN, and sharing projects and sequences via the Media Browser.
    Glad it is working for you. Just to let you know, this workflow is not officially supported so your mileage may vary based on the kind of system you're working with. There are a lot of variations to the quality of these kinds of systems. Some are turn key, some home built - so I think you understand.
    It's working great so far, but we've been having issues (could be user error) with trying to figure out where best to store the Media Cache database, the cache files, and the preview files so when a project is moved from one machine to another, it doesn't constantly have to re-conform all of the media in the project.
    While it's possible to have the cache files (and the database) in a central location (I only know of one place that pulls that off, and it's a very, very large place), the systems that have this data stored locally are far more reliable. You can work around all the reconfirming by avoiding moving the project data around. You really don't need to move the project around from place to place. Have one computer as the "hub" for inputting data from other workstations. Wouldn't that work?
    When I open a project on a new or different machine it has to conform EVERYTHING in the project again.
    Can't you just have the master project on one machine and work on shorter sequences of your doc on the other machines? When done, just import to the master machine.
    Where should I store all these conform and cache files so that new people can get started working without having a machine literally be unusable until the conform process finishes?
    Premiere Pro simply must have those cache files in order to work. Sorry, there's no way around this problem unless you change your workflow.
    Thanks,
    Kevin

  • Where is the best place to store media?

    I have been storing all of my video files in Apetuture since it is easy to just import everything in there when I insert my photos (either off of my iphone, or sd card.)  However I have to export the video files from Apetuture over to Final Cut Pro X in order to create my videos. I've been doing this since FCPX came out, and now have duplicated a lot of videos, and used up a lot of my HD space.
    I have alos liked keeping my videos in Apetuture so I could keep them in the same events as the photos that "go with" the video, not to mention it's nice to have all my media in one place, and I feel that Apetuture is a better media orginazer than fcpx.  However, I don't like having to always export videos, and than import them back in to FCPX.  So I'm curious what the best way to handle media is.  Should I store all my videos in FCPX? Keep them in Apetuture and continue doing what I'm doing? Or some other method?
    Thanks.

    what your are doing isn't a bad thing in my opinion. aperture is a great way to keep all your footage that was shot with a HDSLRs. It will double up your storage, so i propose haveing your aperture library on a seperate drive. import media into FCPX directly and use aperture as your back up. Backups is a great way to get you out of those tight situations where something becomes missing. im sure already knew thaty though. For me i only put my finals in aperture because I like how aperture stores my photos and videos in events, instead of finder. I import directly into FCPX and work with the footage one a seperate drive, ALWAYS. Its too much work on the harddrive running videos files, OS, and FCPX all at the same time.
    hope this helps

  • Best place to store numbers and passwords?

    I currently store all my sentitive data in Contacts.  E.g. under my bank's contact I list (in notes) my account numbers, user name, password, etc.
    Given that many apps can access my Contacts, I'm guessing this isn't the smartest place to keep the data (although convenient)?
    So, if I should take that sensitive data out of my Contacts, where should I put it (that is more secure)?  I need the data on my Mac and also my iPhone so I need that iCloud syncing.  Should I buy a special app from the AppStore (both Mac AppStore and iOS AppStore)?  Or just have it in a Notes doc or something?  Or just leave in my Contacts?
    Thanks for any advice.

    Keychains can also be used to store confidential information that does not belong to a specific
    application, such as bank, credit card or confidential personal information in the form of a Secure note
    item.  These can be added to existing keychains from the File -> New Secure Note Item.  It is
    recommended that secure notes be added to a separate keychain that does not share the same
    password as the login keychain.  This ensures that should the confidentiality of the login password be
    compromised, the secure note will remain secure.  
    To create a new keychain and add a secure note, choose File -> New Keychain, once a name and
    password have been chosen, select the keychain and choose File -> New Secure Note Item:
    For myself I use
    https://agilebits.com/products/1Password/Mac?gclid=CIOfktqP-7kCFaFxQgodtRUATg
    EDIT: You can also create an encrypted folder for sensitive documents
    http://support.apple.com/kb/HT1578

  • Where is the best place to store photos?  In iPhoto or in the photo file?

    I just got a new macbook air and I am wondering is it better to store photos in Iphoto or in the photo folder ?

    Well, of course, the answer is subjective.  What's best for you depends on your personal setup and expectations.
    With all respect to PlotinusVeritas' response, yes, iPhoto "hijacks" your photos and incorporates them into an iPhoto Library, which is not very amenable to non-iPhoto users messing with the photos there.
    However, if you have other Apple devices such as iPhone, iPad, etc., you may wish to share photos with those devices.  This is easily accomplished by iPhoto.  There is also the concept of Photo Stream - keeping the photos in a cloud - which iPhoto does well.
    If you would like these features and need external photo editing programs as PlotinusVeritas' response suggests, you can always export photos out of iPhoto for use elsewhere.
    Again, it all depends on your anticipated use.

  • What is the best place to store movie content?

    I was storing my movies that I converted from dvd in a separate folder on another drive. Then I ran the consolidation option and it copied them to my music folder, within a sub folder called movies.
    Should I store them there to start with? or is there any best practices for storing them separate from itunes music and just pointing to them? I did this in the past, changed to a larger hard drive and lost all of my pointers.
    Any suggestions?

    I think it really depends on the system you have, where you store the iTunes library and how much free space you have on the main/boot drive of the computer.
    Many people use external drives, which are cheap these days, and high capacity to store the whole iTunes library and that is the option I prefer - yes it's an all eggs in one basket solution, but so long as you have the original files copied elsewhere too then there's some redundancy.
    For me the benefits are:
    - dedicated drive (or drives) for media
    - when upgrade required capacity wise could just add another ext drive and link or span the drives, or move library to higher capacity drive
    - less wear and tear on the system/boot drive
    - conserves space on my modestly size iMac system/boot drive
    I don't think there's a one size fits all answer, but if I have redundant copies elsewhere, then it makes more sense to have a dedicated library drive that might go belly up due to frequent use when streaming, but keeps media off the system/boot drive.
    AC

Maybe you are looking for

  • PP Module implementation with out CO Module

    Hi friends, We are facing problem in implementing PP module because of CO areas. Here we are not implementing CO module so we have not defined controlling areas and cost centers etc. But we are getting problem related to CO in PP implementation. for

  • WLC 5508 H-REAP config problem

    Hello, I have a problem with H-REAP configuration. I have a 5508 controller in HQ and a lot of 1242 lap in remote sites. I have only one SSID (used only in remote sites) and only default vlan 1 in all sites.(a big subnet for every site). I created on

  • What specific fields do we map Help

    This is scenario 1..these are pretty standard scenario`s... R/3  =========> XI ==========> ThirdParty App           IDOC                   SOAP ThirdParty App ==========> XI ===========> R/3                          SOAP                        IDOC T

  • ERROR WHEN GENERATING PARTNER PROFILE

    I AM GETTING THE FOLLWING ERRORS WHEN GENERATING PARTNER PROFILE Outbound parameters for message type MATMAS MATMAS05 could not be created  Please enter a valid value for the output mode                             Outbound parameters for message typ

  • Jerky mouse, poor responses after installing OS 10.5.7

    I installed OS 10.5.7 on my 20" iMac dual core Intel (3Gb RAM) about three weeks ago. Since then, I've noticed that the computer does many things poorly: Jerky mouse behavior, especially in Photoshop CS3 (but to a lesser extent in other programs), ve