Using SQL LocalDB in a Windows Service
问题 I have a very small test application in which I'm trying to install a Windows Service and create a LocalDB database during the install process, then connect to that LocalDB database when the Windows Service runs. I am running into huge problems connecting to a LocalDB instance from my Windows Service. My installation process is exactly like this: Execute an installer .msi file which runs the msiexec process as the NT AUTHORITY\SYSTEM account. Run a custom action to execute SqlLocalDB.exe with