- Print
- PDF
How Do I Change a User for the Lasernet Service when Using a LocalDB as the Backend?
Warning
We recommend that you only carry out this operation during system downtime or while Lasernet is not in use, receiving no new input.
When changing the user on the service, this error will occur in the Lasernet Monitor:
To correct this, follow these steps to get the LocalDB database attached to the new user:
Stop the Lasernet Service.
Stop the Lasernet Config service (if on the same server).
Start Windows Taskmanager and stop sqlservr.exe processes associated with LocalDB.
Right-click Properties to choose the right process.
In the following example, two processes are associated with LocalDB (service and config), and one more process is associated with the SQL Express install.
Clear all folders indicated in the following screenshot:
Note
The Programdata folder might not be visible because it is hidden. In that case, type it in the search field.
The Databases folder only contains information including FailedJobs, ScheduledJobs, Pausejobs.
There are no changes made to the Lasernet configuration. If you use SQL Server as a database for running jobs, delete or rename the database yourself using your preferred SQL tool.
Open Services, locate the file, and right-click it; the menu will then display. Select Properties from the list.
Change Log on as to the new user, then start the Lasernet Service as this new user.
Start the Lasernet Config service (if on the same server).
Check that the Lasernet Monitor does not contain errors after starting the service. You may need to select Fetch newest.
Reboot the server, ensuring that the Lasernet Service starts before Lasernet Configurations (Config). Within the Lasernet Config 10 Properties, the service can be set to Automatic (Delayed Start).