Toad World® Forums

How to run Benchmark Factory Agent as a Windows service


#1

It can be very handy to run Benchmark Factory Agent as a Windows service instead of as an executable. Here are the steps to set it up.

WARNING: Using Registry Editor incorrectly can cause serious problems that can damage the operating system and the software installed. Quest cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

HKEY_CURRENT_USER | Software | Quest Software |Benchmark Factory for Databases | Benchmark Factory Agent | Settings

Right mouse click and add New | DWORD Value

Name: EnableAgentAsService

Value: 1

Then bring up a command prompt and change the directory to the BMF bin directory and run:

Agent.exe -I

This will install the agent as a service, so now the user can start and stop the agent as a service.

To remove the Agent as a service, from the command prompt type:

Agent.exe –R


#2

Another thing to note is that when running the Agent as a service that, depending on the account that the Agent service is being run as may cause errors that are not seen when running the Agent normally. An example of this would be the Agent service not being to find a ODBC datasource if the datasource was created as a user datasource instead of a system datasource. Or maybe not having be able to connect to a SQL server database when connecting with trusted security. So please be aware of these issues with running the Agent service under a different security context.