首页 > 数据库 >SQL Server Management Studio设计视图显示说明列

SQL Server Management Studio设计视图显示说明列

时间:2023-03-03 14:25:51浏览次数:34  
标签:Management 注册表 视图 Server Studio SQL Identity

在使用SqlServer管理工具设计列时,希望能够显示说明列,便于设计和书写。如下面效果。
image
但是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则对应100,SQL 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,6,17; 即可。再次打开管理器,效果如下所示。
本人习惯排列为: 1,2,6,7,17,3,13,4,5,8,9,10,11,12,14,15,16;
image
注意:在设置注册表时,管理器需要是关闭状态。
其中,各数字代表的意思如下:
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

标签:Management,注册表,视图,Server,Studio,SQL,Identity
From: https://www.cnblogs.com/GaoUpUp/p/17175449.html

相关文章