上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页
摘要: 下图,制作了一个可以维持1分钟的表锁:下图,可以查询出被锁的表,其中 spid 是锁定表的进程ID(也是 session_id):可以通过select connect_time from sys.dm_exec_connections where session_id=52 查看开始会话时间这时对该... 阅读全文
posted @ 2015-03-13 09:05 Yu 阅读(203) 评论(0) 推荐(0) 编辑
摘要: https://github.com/dotnet/corefx如果出现未能找到解决方案的情况,则找项目文件打开,如: 阅读全文
posted @ 2015-03-12 14:10 Yu 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 在客户端与服务端之间传递的自定义数据类型,格式如下: [DataContract] public class User :IExtensibleDataObject { [DataMember] public int I... 阅读全文
posted @ 2015-03-06 14:21 Yu 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 这里主要说的是同名异常: [ServiceContract] public interface IUserInfo { [OperationContract] string ShowName(stri... 阅读全文
posted @ 2015-03-05 17:28 Yu 阅读(6213) 评论(0) 推荐(0) 编辑
摘要: SET TRANSACTION ISOLATION LEVEL xxx --每次设置只针对当前事务块xxx 取值:READ UNCOMMITTEDREAD COMMITTEDREPEATABLE READSNAPSHOTSERIALIZABLEtest1表数据如下: 现在对 Name 为 aaaa... 阅读全文
posted @ 2015-02-25 14:28 Yu 阅读(783) 评论(0) 推荐(0) 编辑
摘要: --检查索引碎片情况dbcc showconfig(tablename)具体例子:--上图为碎片整理之前ALTER INDEX ALL on Citation REBUILD--下图为碎片整理之后-- Extents Switches: Extents Scanned -1-- Avg. Pages... 阅读全文
posted @ 2015-02-14 13:50 Yu 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 填充因子依附索引而存在,但创建索引,就意味着要对表进行DML时,必须处理额外的工作量(也就是对索引结构的维护)以及存储方面的IO开销。所以创建索引时,需要考虑创建索引所带来的查询性能方面的提高,与引起的额外的开销相比,是否值得。填充因子取值范围:0~100(0为默认值) 阅读全文
posted @ 2015-02-13 15:14 Yu 阅读(494) 评论(0) 推荐(0) 编辑
摘要: _CI(CS) 是否区分大小写,CI不区分,CS区分_AI(AS) 是否区分重音,AI不区分,AS区分_KI(KS) 是否区分假名类型,KI不区分,KS区分_WI(WS) 是否区分宽度 WI不区分,WS区分 阅读全文
posted @ 2015-02-10 17:23 Yu 阅读(211) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { DoWork(); } static void DoWo... 阅读全文
posted @ 2015-02-05 15:36 Yu 阅读(249) 评论(0) 推荐(0) 编辑
摘要: PrintQueueCollection printQueues = null;var printServer = new PrintServer();printQueues = printServer.GetPrintQueues(new[] { EnumeratedPrintQueueTypes... 阅读全文
posted @ 2015-01-23 14:59 Yu 阅读(955) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页