Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSMS 19 - Compatibility #283

Open
verbeurew opened this issue Jun 1, 2022 · 27 comments
Open

SSMS 19 - Compatibility #283

verbeurew opened this issue Jun 1, 2022 · 27 comments

Comments

@verbeurew
Copy link

Any plans to support SSMS 19?

Kind Regards

@rahulmutreja
Copy link

please update for ssms 19

@adepew
Copy link

adepew commented Feb 2, 2023

SSMS 19.0 is now GA. Is there any timeline for adding support?

@AlexanderStromer
Copy link

@TaoK
if someone were to put up a PR with SSMS 19 support, would this be merged here?
I see there are a bunch of stale PRs, no activity to reconcile these.

thx

@steelwil
Copy link

steelwil commented Apr 2, 2023

I got it working this way.

  1. Install SSMS 17.9.1
  2. Install SSMS 19.x
  3. Install PoorMansTSqlFormatter
  4. copy PoorMansTSqlFormatterSSMSPackage.pkgdef to C:\Program Files (x86)\Microsoft SQL Server Management Studio 19\Extensions (located at C:\Program Files (x86)\Microsoft SQL Server Management Studio 17\Extensions or C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Extensions)
  5. Re-open SSMS 19.x and it should appear under Tools. (you can now fix the shortcut keys CTRL-K CTRL-D)
  6. Uninstall SSMS 17.9.1

@spike1234
Copy link

I got it working this way.

1. Install SSMS 17.9.1

2. Install SSMS 19.x

3. Install PoorMansTSqlFormatter

4. copy PoorMansTSqlFormatterSSMSPackage.pkgdef to C:\Program Files (x86)\Microsoft SQL Server Management Studio 19\Extensions (located at C:\Program Files (x86)\Microsoft SQL Server Management Studio 17\Extensions or C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Extensions)

5. Re-open SSMS 19.x and it should appear under Tools. (you can now fix the shortcut keys CTRL-K CTRL-D)

6. Uninstall SSMS 17.9.1

Thanks a lot: it works!!

@gggirj
Copy link

gggirj commented May 30, 2023

I just made a working version for smss 19
https://simul-europe.com/PoorMansTSqlFormatterSSMSPackage.Setup.msi
enjoy

@kmills17
Copy link

kmills17 commented Jun 7, 2023

thanks, it seems to install but the menu options are greyed out

@gggirj
Copy link

gggirj commented Jun 8, 2023

thanks, it seems to install but the menu options are greyed out

Edit ssms.exe.config
C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE

In <assemblyBinding> Add

<dependentAssembly> <assemblyIdentity name="Microsoft.VisualStudio.Shell.12.0" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> <bindingRedirect oldVersion="2.0.0.0-15.0.0.0" newVersion="15.0.0.0"/> </dependentAssembly> 

@kmills17
Copy link

kmills17 commented Jun 8, 2023

that worked a treat, thank you.

@rahulmutreja
Copy link

Yes it worked thanks

@dwillis77
Copy link

dwillis77 commented Jun 15, 2023

I got it working this way.

1. Install SSMS 17.9.1

2. Install SSMS 19.x

3. Install PoorMansTSqlFormatter

4. copy PoorMansTSqlFormatterSSMSPackage.pkgdef to C:\Program Files (x86)\Microsoft SQL Server Management Studio 19\Extensions (located at C:\Program Files (x86)\Microsoft SQL Server Management Studio 17\Extensions or C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Extensions)

5. Re-open SSMS 19.x and it should appear under Tools. (you can now fix the shortcut keys CTRL-K CTRL-D)

6. Uninstall SSMS 17.9.1

Thank you! This worked for me - although in my case I had SSMS v18 installed as the "older version" instead of v17 (since the extension will install successfully if it detects SSMS v18 being installed as well). To get it working with v18 though, I had to use the fix described here (which it seems is necessary if you are only running SSMS v18 without v17 alongside, since v18 does not include the VS 2015 Isolated Shell, it either needs the binding redirect or you have to install the VS 2015 Isolated Shell manually).

Using that in conjunction with this process got the extension working for me in both v18 and v19 (install v18, install v19, install extension, copy .pkgdef from the v18 installation folder to the v19 installation folder, perform the config file fix noted in the other thread).

@PETERHUP
Copy link

PETERHUP commented Jun 16, 2023

Installing https://simul-europe.com/PoorMansTSqlFormatterSSMSPackage.Setup.msi
and Editing the ssms.exe.config C:\Program Files (x86)\Microsoft SQL Server Management Studio 19\Common7\IDE

In <assemblyBinding> Add

<dependentAssembly> <assemblyIdentity name="Microsoft.VisualStudio.Shell.12.0" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> <bindingRedirect oldVersion="2.0.0.0-15.0.0.0" newVersion="15.0.0.0"/> </dependentAssembly> 

Works perfect using SSMS 19.1 too which is the only version I installed on my new machine.

Thanks gggirj

@olibara
Copy link

olibara commented Jul 31, 2023

Unfortunately the update provided by [ggirj] still require .NET 2.0
And this is totally obsolete on Windows 11
It should be nice if Someone have the time and patience to update the solution for .NET 4* minimum

@ImranMoTown
Copy link

Hi Everyone, gggirj's link for an SSMS 19 compatible package no longer seems to work, does anyone know where else to get it?
Old broken link: https://simul-europe.com/PoorMansTSqlFormatterSSMSPackage.Setup.msi

@gggirj
Copy link

gggirj commented Nov 7, 2023

Hi Everyone, gggirj's link for an SSMS 19 compatible package no longer seems to work, does anyone know where else to get it? Old broken link: https://simul-europe.com/PoorMansTSqlFormatterSSMSPackage.Setup.msi

The link is working again

@Nygards
Copy link

Nygards commented Feb 1, 2024

Unfortunately the update provided by [ggirj] still require .NET 2.0 And this is totally obsolete on Windows 11 It should be nice if Someone have the time and patience to update the solution for .NET 4* minimum

I got it working by searching for "Turn Windows features on or off" and checking ".NET Frameowrk 3.5 (includes .NET 2.0 and 3.0)"

@leobarreto
Copy link

Instalando https://simul-europe.com/PoorMansTSqlFormatterSSMSPackage.Setup.msi e editando o ssms.exe.config C:\Program Files (x86)\Microsoft SQL Server Management Studio 19\Common7\IDE

In <assemblyBinding> Add

<dependentAssembly> <assemblyIdentity name="Microsoft.VisualStudio.Shell.12.0" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> <bindingRedirect oldVersion="2.0.0.0-15.0.0.0" newVersion="15.0.0.0"/> </dependentAssembly> 

Funciona perfeitamente usando SSMS 19.1 também, que é a única versão que instalei em minha nova máquina.

Obrigado, gggirj

In version SSMS 19.3, it doesn't work.

@icebluejean
Copy link

Edit ssms.exe.config C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE

In <assemblyBinding> Add

<dependentAssembly> <assemblyIdentity name="Microsoft.VisualStudio.Shell.12.0" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> <bindingRedirect oldVersion="2.0.0.0-15.0.0.0" newVersion="15.0.0.0"/> </dependentAssembly> 

It works in all versions of 19.3.4, 20.0.70
thank you

@rizi
Copy link

rizi commented Mar 28, 2024

@gggirj would it be possible to create a installer for version 20.x, or tell me how to do it?

br

@pazetto
Copy link

pazetto commented May 23, 2024

@gggirj would it be possible to create a installer for version 20.x, or tell me how to do it?

br

I did what PETERHUP said above and it's working for me in v20.0

@WyattBest
Copy link

I've used this tool with SSMS 18, 19, and now 20 just by installing Visual Studio 2015 Shell (Isolated). No need to modify assembly bindings.

@viksamiles77
Copy link

@pazetto
I tried to install this: https://simul-europe.com/PoorMansTSqlFormatterSSMSPackage.Setup.msi
It wont allow me because it says that I need older version of SSMS (I have 20.1.10).
I added the changes that @PETERHUP made (adding the line of code in ssms.exe.config) but when I try to install the same thing it shows the same error.
Am I doing something wrong, can you help?

@ShixAJ
Copy link

ShixAJ commented Jul 31, 2024

If you don't want to install another version of SSMS you can:

  1. Open regedit (Registry Editor)
  2. Find your way to HKEY_CURRENT_USER\SOFTWARE\Microsoft\SQL Server Management Studio
  3. If you have SSMS 19 installed you will find 19.0_IsoShell_Config, if you have SSMS 20 installed you will find 20.0_IsoShell_Config
  4. Rename it to 18.0_IsoShell_Config
  5. Run PoorMan's Setup.
  6. Change back the Registry folder back to 19.0_IsoShell_Config or 20.0_IsoShell_Config
  7. Find your SSMS installation folder and open the Common7/IDE folder (C:\Program Files (x86)\Microsoft SQL Server Management Studio 20\Common7\IDE) and open the ssms.exe.config file
  8. Under <assemblyBinding> Add :
<dependentAssembly> 
    <assemblyIdentity name="Microsoft.VisualStudio.Shell.12.0" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
    <bindingRedirect oldVersion="2.0.0.0-15.0.0.0" newVersion="15.0.0.0"/> 
</dependentAssembly>
  1. Open SSMS. You should find Poor Man's Formatter in the Tools

@lanedsmu
Copy link

lanedsmu commented Aug 1, 2024

@ShixAJ, thanks much for the details; this is super helpful

@AlexanderStromer
Copy link

I have tried contacting @TaoK but no answer. I don't know what his plans are for PoorSQL, but given it is such a successful tokenizer and formatter it is a shame to let this thing die and not support modern platforms.

@gggirj
Copy link

gggirj commented Oct 4, 2024

Hi guys again, I fixed the files to work with SMSS 19 and 20, also changed visualstudio shell to 14 so you don't need manually changes smss config file, Enjoy
https://geogensoft.com/PoorMansTSqlFormatterEditedbyGeoGenSoft.Setup.msi

@gggirj
Copy link

gggirj commented Oct 4, 2024

@gggirj would it be possible to create a installer for version 20.x, or tell me how to do it?

br

Created, enjoy mate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests