How do I add the description property to the table designer view in SSMS?
Here are the steps to add a property to the table designer in SQL Server Management Studio. The steps involve altering the values in registry settings.
NOTE: Please be careful while altering registry keys.
Type regedit in the Windows Start --> Run command to open the Registry Editor.
Navigate to
HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\100\Tools\Shell\DataProject
You might need to change the SQL Server version accordingly. I am using SQL Server 2008 R2 Express and hence the version 100. For SQL Server 2012, I found this setting under
HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\11.0\DataProject
Under the above mentioned registry path, look for the keys
SSVPropViewColumnsSQL70
andSSVPropViewColumnsSQL80
.By default, these registry keys will have the values
1,2,6;
. Section Property sequence mentioned below shows the number associated with each property. For my requirement to add Description column to the table designer, I had to change the registry key values to1,2,6,17;
Right-click on the key and select
Modify
option. Change the value from1,2,6;
to1,2,6,17;
. This has to be done on both the keysSSVPropViewColumnsSQL70
andSSVPropViewColumnsSQL80
NOTE: Remember to restart SSMS between each registry change.
Property sequence:
- Column Name
- Data Type
- Length
- Precision
- Scale
- Allow Nulls
- Default Value
- Identity
- Identity Seed
- Identity Increment
- Row GUID
- Nullable
- Condensed Type
- Not for Replication
- Formula
- Collation
- Description
Hope this helps someone.
For SQL-Server-Management Studio 2014 (SSMS 2014) it's a bit tricky to get the "Description" column (17):
1) Open SSMS 2014, wait for Login-Dialog is shown. (Don't click "connect"!)
2a) Open Regedit, goto: "HKEY_USERS\S-1...###YOUR-WINDOWS-USER-SID###-\SOFTWARE\Microsoft\SQL Server Management Studio\12.0\DataProject"
2b) Change the keys: SSVPropViewColumnsSQL70 and SSVPropViewColumnsSQL80 from 1,2,6; to 1,2,6,17;
3) Now click "Connect" at the SSMS 2014 Login-Dialog.
For those of you looking for a .REG file to achieve this, copy/paste these lines into a text file with a .REG extension. Double click that to add it to your registry. The column numbers are listed in the answer by pithhelmet. The example below uses "14.0" meaning the version of SSMS that started being released as a standalone tool from SQL 2017 onwards. I expect that the registry path will continue to stay at 14.0 for some time yet, even with regular updates for SSMS being released.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\14.0\DataProject]
"SSVPropViewColumnsSQL70"="1,2,6,3,7,8,17;"
"SSVPropViewColumnsSQL80"="1,2,6,3,7,8,17;"
Note that you need to have SSMS closed when you apply these changes to the registry.