Configuring Top Query Search
Published 21 October 2021
Top Query Search can now be configured to store its index files in a location other than the default of %ProgramData%\Red Gate\SQL Monitor\SearchEngine
Step-by-step guide
- Create the new folder you would like to use.
Ensure that you have granted access to the folder you would like to use to the service account running the base monitor service.
Additional note for high availability
In the case of a high availability install of the SQL Monitor base monitor service, we would advise using a file share that can be seen from both active and passive nodes for this.
- Open the folder %ProgramData%\Red Gate\SQL Monitor\SearchEngine on the system running the base monitor.
- Stop your base monitor service.
- Move the contents of %ProgramData%\Red Gate\SQL Monitor\SearchEngine to your new folder.
Run the below query on your SQL Monitor repository database, replacing
<Your new path here>
with the new folder you created above.INSERT INTO settings.KeyValuePairs (KeyName, KeyValue, KeyValueType) VALUES ( N'SearchIndexPath', N'<Your new path here>', N'STRING' )
- Start your base monitor service again.