If you want to move your snippets, styles and SQL history from one installation of SQL Prompt to another, or you're upgrading SQL Prompt, you'll need to copy a few folders and files across.
Locate your files
By default these are stored at:
%localappdata%\Red Gate\SQL Prompt <version>\Snippets%localappdata%\Red Gate\SQL Prompt <version>\Styles%localappdata%\Red Gate\SQL Prompt <version>\SavedTabs.db (or SQLHistory.db on versions after 10.13.0.31319)
Replace <version> with your installed version number, for example SQL Prompt 10 or SQL Prompt 11.
Copy to the new installation
- Copy the Snippets and Styles folders into the matching folders on the new installation
- Copy SavedTabs.db or SQLHistory.db into the
%localappdata%\Red Gate\SQL Prompt <version>\folder on the new installation, replacing any existing file of the same name
If you copy an older SavedTabs.db file into a SQL Prompt 10.13 or newer installation, it's automatically converted to a SQLHistory.db file the next time SSMS or Visual Studio starts.
If the new installation already has a SavedTabs.db or SQLHistory.db file you want to keep, note that this can't be merged with the one you're copying over. You'll need to choose one or keep a backup of the other.
Point SQL Prompt to a snippets folder in a new location
If you'd rather move just your snippets to a new folder without copying the whole Snippets directory:
- Copy the contents of your existing Snippets folder to the new location
- In SQL Prompt, go to Options > Snippets
- Click Add and select the new folder
Your snippets should now appear in SQL Prompt from the new location.
Share snippets across multiple machines
To use the same snippets on more than one machine, set up a shared folder instead:
- Create a shared folder on a network drive or cloud storage service such as OneDrive or Dropbox
- Copy your snippets into this shared folder
- On each machine, go to Options > Snippets in SQL Prompt, click Add and select the shared folder
All connected machines will then use the same set of snippets.
Was this article helpful?
Articles in this section
- Entra ID MFA Authentication
- SSMS 22.3 compatibility and fixes
- SSMS 22 freezes while importing SQL Prompt settings for the first time
- Prompt AI failed to log in
- SQL History is blank
- Unable to access SQL Prompt AI features
- SQL History is greyed out
- SQL Prompt missing from toolbar after installation
- Add SQL History to a shared folder
- Error: Something went wrong while signing in. Authentication failed.
Add comment
Please sign in to leave a comment.