加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

sql-server – 数据库 – 如何在TSQL中创建区域(SQL Server 2008

发布时间:2020-12-12 16:39:42 所属栏目:MsSql教程 来源:网络整理
导读:有没有办法在SQL脚本文件中创建可折叠区域,就像我们在VS中创建的那样 #region ….. #endregion? – 编辑 – 脚本文件包含像Alter Table和Alter View等DDL语句,我想将它们分组到像“表相关语句”“查看相关语句”等区域. 解决方法 是的,有 SSMS Tools Pack Re
有没有办法在SQL脚本文件中创建可折叠区域,就像我们在VS中创建的那样
#region ….. #endregion?

– 编辑 –

脚本文件包含像Alter Table和Alter View等DDL语句,我想将它们分组到像“表相关语句”“查看相关语句”等区域.

解决方法

是的,有 SSMS Tools Pack

Regions and Debug sections

Regions behave in the same way as in Visual Studio. You can collapse them and expand them. Debug sections are sections that get commented when you change your script to Release configuration. A debug section is also a collapsable region. If you deploy a script in debug mode with added debug sections it will fail when run from SSMS without SSMS Tools Pack installed. You can of course comment those sections yourself by simply searching for start and end text of the debug sections

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读