Open a new query window. Write some SQL. Save the script, the Save File As dialog box opens - but always to the same default location in the Profiles directory. Is there any way to set my default file location? ...Like I used to do with apps from the 1980s?
Under Tools|Options a default location can be specified for query results. I need the same thing for new queries (the text editor). Tried changing locations in the Registry but SSMS just overwrote my changes. Any suggestions?
(I saw this unanswered question at http://www.eggheadcafe.com/software/aspnet/30098335/management-studio-default.aspx and I had same exact question so I just reposted it here)
The data in Query Store is stored in the database where the SQL Server Query Store is enabled.
Click Save <file> As on the File menu (where <file> is the name of the current item), or press ALT+F, A in the Code Editor.
This is 5 years old now, but it doesn't mention SSMS version, so I thought I'd add an update for SSMS 2012 and SSMS 2014. Step one differs between the versions, and then the rest is the same:
SSMS 2012
SSMS 2014
SSMS 2016
SSMS 17
SSMS 18
All (continued)
Thanks to this source: http://www.networksteve.com/forum/topic.php/How_to_change_the_default_query_save_location_in_SSMS/?TopicId=41425&Posts=0
I know this is an old question, but I found a link expaining how to do this properly, at least for SQL 2005. Think it will work for later versions as well.
Changing the my projects folder
The settings are stored in an
.vssettings
XML file inMy Documents\SQL Server Management Studio\Settings
folder. Make sure you close SSMS before making changes to this file: SSMS writes to it when you close the application and will overwrite any changes you make. To change theMy Projects
folder, you are looking for this line:
<PropertyValue name="ProjectsLocation">%vsspv_user_documents%\My Projects</PropertyValue>
The value inside is the location of the
My Projects
folder. Simply change the value, and the next time you open SSMS theMy Projects
folder will be mapped.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With