11 06 2023

在使用SqlServer管理工具设计列时,希望能够显示说明列,便于设计和书写。如下面效果。

但是SqlServer管理工具本身并没有这一设置的功能,需要修改注册表。具体修改内容如下。

1、输入 regedit 打开注册表

2、定位到:“HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\11.0\DataProject”,注意这里的11.0表示安装的SQL Server Management Studio版本号。如果是SQL Server 2008 R2则对应100SQL Server 2012对应11.0,以此类推。

注意对于, SQL Server Management Studio Version 18.x (2019),路径变为

Computer\HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\18.0_IsoShell\DataProject

3、找到 SSVPropViewColumnsSQL70 SSVPropViewColumnsSQL80

默认值为:1,2,6;。将其修改为1,2,3, 6,17; 即可。再次打开管理器,效果如下所示。

 

注意:在设置注册表时,需要先关闭SQL Server Management Studio。

其中,各数字代表的意思如下:

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


延伸阅读
  1. 调整SQL Server Management Studio设计视图中显示的列
  2. 导出SqlServer数据库所有表及字段信息
发表评论