Search code examples
sql-serversql-server-2005ssmsssms-2012ssms-2014

Index GUI Issues with SSMS 2014 and 2016 when working with SQL Server 2005


We currently work with all versions of SQL Server from 2005 onwards. To save time I try to do everything in a single version of Management Studio. This also helps if running newer client operating systems like Windows 10 which old client tools aren't compatible with.

Specifically when trying to view the graphical SSMS interface for index properties I get the following error if connected to a SQL Server 2005 instance.

In Object Explorer:

Database > Table > Indexes > Right Click > Properties

enter image description here

Full error text:

TITLE: Microsoft SQL Server Management Studio

Exception has been thrown by the target of an invocation. (mscorlib)

ADDITIONAL INFORMATION:

Cannot read property IsSparse. This property is not available on SQL Server 2005. (Microsoft.SqlServer.Smo)

This also happens in SSMS 2014, but not SSMS 2012.

So my question is; can something be done to work around this issue allowing one version of management studio to be used for all versions of SQL Server from 2005 onwards?

I'm guessing now, but as it works in SSMS 2012 there must be something going on that targets an older version of mscorlib. Maybe because SSMS 2012 uses a VS2010 shell and different .Net framework?

Many thanks in advance for your time.


Solution

  • There is an Active feedback about that on Microsoft Connect here. Someone suggest a workaround to go into Table Design and go to menu "Indexes/Keys...". It works, but some properties are not editable that way, like Included Columns. The other options left are to use SSMS 2005-2012 or use T-SQL script, like Aaron said.