运行-regedit-打开注册表(这里记得关掉SMSS工具)。
HKEY_CURRENT_USERSoftwareMicrosoftSQL Server Management Studio13.0DataProject
我是用的是2016,版本为13.0,这里注意对应你的版本号下找到DataProject
SQL Server 2008 R2是100,SQL Server 2012是11.0
2019的路径跟上面不同:ComputerHKEY_CURRENT_USERSoftwareMicrosoftSQL Server Management Studio18.0_IsoShellDataProject
最后,我们找到SSVPropViewColumnsSQL70 和SSVPropViewColumnsSQL80
我们看到的值:1,2,6; → 把它改成:1,2,6,17;,数字代表的列如下:
(1)Column Name (2)Data Type (3)Length (4)Precision(5)Scale
(6)Allow Nulls(7)Default Value(8)Identity(9)Identity Seed(10)Identity Increment
(11)Row GUID(12)Nullable(13)Condensed Type(14)Not for Replication(15)Formula
(16)Collation(17)Description