) windows, and go through a rather slow and sometimes painful process of finding differences or similarities. Until now you would open a couple showplans side by side in different SSMS ( Maybe it’s to find why a query or batch suddenly slowed down to understand the impact of a rewrite or observe how a specific performance-enhancing change introduced to the design (like an index) has effectively changed the plan, as these are considerations that drive different choices of the Query Optimizer. sql file, chose "Properties", "OpensWith" "Change" and browsed to the correct instance I would like to open with, namely 2014.Īll good now, all files open in the same instance and that is the 2014 even when I start with a double-click on a file, rather than on the shortcut of my 2014 ssms.The ability to compare plans is something that a lot of people have to do for troubleshooting reasons. Then I did the simplest thing I should have done from the start: I right clicked on a. sql file are actually version 2012 and not 2014. Then I completely accidentally noticed that the new instances opening when I double-click on a. Then I noticed that the key has ssms.exe but not the path to it so interestingly how would it know which of my installed versions to use. I tried that last suggestion about changing the registry in Explorer\FileExt.sql and it did not help.
Sql server management studio 17 file compare install#
Recently I had to install 2014 as the old one stopped working with spatial results with my new SQL Server 2014, and what do you know, it had the same problem as all other instances except 2012. I have a number of SSMS versions installed and always used 2012 because this was the only version that would open all. (I think it's something to do with the assocation to sql_auto_file, rather than ssms.sql15.0)
![sql server management studio 17 file compare sql server management studio 17 file compare](https://www.ptr.co.uk/sites/default/files/BlogContent/ssms_compare_plans_example.png)
sql files open in the existing instance of SSMS. I manually created those entries in the HKEY_USERS hive for my user based on the values created for my administrator user, and now my.
![sql server management studio 17 file compare sql server management studio 17 file compare](https://spaghettidba.files.wordpress.com/2015/10/ssms_smart_scaling_200_percent.png)
It appears that doing it this way populates the correct user specific registry settings in the administrator's account registry rather than mine. My standard user account on the laptop is not an Admin, so SSMS was installed using "run as Administrator". This was a brand new installation of SQL / SSMS on a new laptop so wasn't caused by a conflict with an earlier version. sql files from explorer by double clicking them would open a new instance of SSMS, rather than the existing open one. The post by Alexander G led me to my answer. After that SSMS opens sql files in existing SSMS instance and explorer has correct file icon assigned (document with small database icon) Then I've restarted my PC, then installed SSMS 18, then restarted again. HKEY_USERS.DEFAULT\Software\Microsoft\SQL Server Management Studio.HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.sql.Removed all records for ssms in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts.HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio.HKEY_CLASSES_ROOT\Applications\Ssms.exe.
![sql server management studio 17 file compare sql server management studio 17 file compare](https://i.stack.imgur.com/DHc5it.png)
I removed the following nodes (don't forget to backup each of them prior to deleting!): First of all I've uninstalled SSMS, then I've searched through registry to find and remove all meaningful nodes containing info about SSMS or sql_auto_file. I was finally able to resolve this issue with SSMS 18, but I hope it will fix incorrect behavior of SSMS 17 as well. Uninstalling SSMS 18 and installing 17.9 again did not work either. Then I have tried solutions from the list above but none worked. I have encountered this issue after installing SSMS 18 instead of 17.9. SQL Server Management Studio versions are listed here. Previously, I was using SSMS June 2016 (build: 0.23) with the same SQL Server (.0).īecause of permission, I am not running any application as administrator. On DBA, it is mostly talking about raised permissions, which is not the case with my situation.Įven with the new SSMS 17.9.1 (build: 9.0), I am still pointing to SQL Server 2016 (.0).The suggestion mentioned on SO did not work either.
![sql server management studio 17 file compare sql server management studio 17 file compare](https://cloudblogs.microsoft.com/uploads/prod/2018/05/ssms-17.7-pic-1024x623.png)
I added "%1" but that did not make any difference.