摘要: --为字段添加注释 --格式如右:execute sp_addextendedproperty 'MS_Description','字段备注信息','user','dbo','table','字段所属的表名','column','添加注释的字段名'; --以下示例:表名:Order , 字段名: P 阅读全文
posted @ 2020-12-03 15:56 微笑Coding 阅读(119) 评论(0) 推荐(0)
摘要: --查询锁死的表名和idSELECT request_session_id spid, OBJECT_NAME( resource_associated_entity_id )tableName FROM sys.dm_tran_locks WHERE resource_type = 'OBJECT 阅读全文
posted @ 2020-12-03 15:47 微笑Coding 阅读(224) 评论(0) 推荐(1)