Changing the location of the settings and snippet folders
Published 04 March 2013
By default, the SQL Prompt settings and snippet files are stored in:
To change the locations of these files so they aren't stored in your user profile:
- Open Registry Editor (regedit.exe).
- Navigate to the SQL Prompt registry key: HKEY_CURRENT_USER\Software\Red Gate\SQL Prompt <version number>
- Right-click the key and select New > String Value.
- Set the string name to Options Folder or Snippets Folder as appropriate.
- Right-click the string and select Modify to open the Edit String dialog.
- In the Value data box, type the path of the folder in which you want to store the files. You must specify an existing folder.
If you want to store existing snippet files in the new location, you will need to move them manually.
Storing settings in AppData\Roaming
You can only store settings in AppData\Roaming with SQL Prompt 7.1 and later.
To store settings in AppData\Roaming:
- Open Registry Editor (regedit.exe).
- Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Red Gate (64-bit) or HKEY_LOCAL_MACHINE\SOFTWARE\Red Gate (32-bit).
- Right-click the Red Gate folder and select New > Key.
- Set the folder name to SQL Prompt.
- Right-click the SQL Prompt folder and select New > DWORD (32-bit) Value.
- Name the value StoreSettingsUnderRoaming.
- Right-click the value and select Modify.
- In the Value data box, set the value to 1.