2014年10月25日

SQL Server 表压缩

摘要: 表压缩有三个选项 1、page 2、row 3、none-----------------------------------------------------------------------------------------------------------------------... 阅读全文

posted @ 2014-10-25 19:53 蒋乐兴的技术随笔 阅读(795) 评论(0) 推荐(0) 编辑

SQL Server 一些重要视图4

摘要: sys.master_files 为每一个数据库的每一个文件返回行。 阅读全文

posted @ 2014-10-25 16:01 蒋乐兴的技术随笔 阅读(171) 评论(0) 推荐(0) 编辑

SQL Server 排序规则

摘要: 1、 查看排序规则 select serverproperty('collation');2、 指定列的排序规则 alter table T2 add Y nvarchar(32) collate Chinese_PRC_CI_AS; go ----------------------... 阅读全文

posted @ 2014-10-25 14:23 蒋乐兴的技术随笔 阅读(587) 评论(0) 推荐(0) 编辑

SQL Server 一些重要视图3

摘要: 1、 sys.dm_tran_locks; 为每一把锁返回一行、request_session_id 可以与sys.dm_tran_session_transactions \sys.dm_exec_connections相关联。 request_status 查看锁的分配情况2、 sys.... 阅读全文

posted @ 2014-10-25 09:58 蒋乐兴的技术随笔 阅读(181) 评论(0) 推荐(0) 编辑

SQL Server 一些重要视图2

摘要: 1、 sys.dm_tran_session_transactions 为每一个没有关闭的事务返回一行。session_id 可以与sys.dm_exec_connections.session_id 关联。2、 sys.dm_exec_connections 为每一个连接返回一行。most... 阅读全文

posted @ 2014-10-25 09:14 蒋乐兴的技术随笔 阅读(200) 评论(0) 推荐(0) 编辑

SQL Server save transaction

摘要: 准备: create table Nums(X int); 目的:只向表中插入一行。----------------------------------------------------------------------------------------------------------... 阅读全文

posted @ 2014-10-25 08:48 蒋乐兴的技术随笔 阅读(1785) 评论(0) 推荐(0) 编辑

SQL Server 输出受影响的行

摘要: 前期准备: create table Nums(X int); create table T(X int); go 目的:把对表Nums的insert | delete | update 反映到T表中。---------------------------------------------... 阅读全文

posted @ 2014-10-25 08:02 蒋乐兴的技术随笔 阅读(605) 评论(0) 推荐(0) 编辑

导航