Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8280127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:33:29+00:00 2026-06-08T09:33:29+00:00

I am considering adding LocalDB for data storage to my application. Background: 1) My

  • 0

I am considering adding LocalDB for data storage to my application.

Background:

1) My Application has 2 parts.
a. A Desktop Client. (Running Under the user that logged into the computer)
b. NT Service. (Running as Local System)

NT Service:
1) Make web service calls to our back end server for client specific settings and configuration options.
2) Upload client created records.

Desktop App:
1) Load the settings downloaded by the NT Service and run according to those settings.
2) Create client records.

LocalDB seem like a good fit here but can both of these items access the LOCALDB at the same time? After some investigation online it looks like a LOCALDB shared instance may be possible. However does that mean the NT Service would have to keep the LOCALDB connection alive all the time?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T09:33:30+00:00Added an answer on June 8, 2026 at 9:33 am

    Having done a very similar deployment to what you have described, yes this can be done. However I would strongly advise against it.

    Some thoughts:

    1. LocalDB ‘instances‘ require the user profile be loaded. The only use profile that is always loaded is Local System aka the NT Authority\SYSTEM account.
    2. Only the owner of the ‘instance‘ can start or stop it. The ‘automagic‘ instance can be set to ignore the auto-showdown timeout, but it still has to be started atleast once. I solved this by creating a windows task that launched a bootstrapper that shelled out ‘sqllocaldb start v11.0‘ on boot. Windows Tasks execute with ‘Below Normal‘ process priority so the launched bootstrapper actually boosted the SQLEnv.exe priority to high for my use case.
    3. Assuming you go with NT Authority\SYSTEM being the instance profile, using something like SQL Management Studio would likely require PsExec on the system. This is a security risk because it gives you interactive access to a proccess that runs as Local System. Don’t do it.
    4. We used groups for access to our client part so we grant access for those groups to the actual database/instance. Without that it is damn near impossible to grant new users access to the instance/database.

    Do you really need a database or could the thick client write out a file to a specific location for each record that the service then inspects(or builds a buffer) and sends on its way?

    Another alternative is to remove the NT Service and make its functionality the a part of the Client start up process. Why have a long running process that constantly checks for config changes and only pushes data if the user is actively using the system? Assuming you don’t have requirements/an existing system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are considering adding another server to development life cycle, so that we can
I'm strongly considering adding unit testing to an existing project that is in production.
I'm considering adding a tsvector column to an existing table that will hold possible
We have a production system that uses MongoDB as it's data storage and writes
I have a class that has some long running methods, in which they do
I have been considering adding threaded procedures to my application to speed up execution,
I'm looking at adding logging to an application, and I'm considering using Kiwi syslogd
I have a Rails application that has a search field that allows any visitor
Considering that simple java code which would not work: public class Bar extends AbstractBar{
Considering that I have a Schema named SBST I want to find all empty

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.