摘要: StreamReader sr = new StreamReader(path, Encoding.ASCII); string str2 = sr.ReadToEnd(); string str1 = str2.Replace("\r\n", "\n"); sr.Close(); FileStre 阅读全文
posted @ 2017-06-05 17:43 晓志 阅读(268) 评论(2) 推荐(0) 编辑
摘要: System.Diagnostics.Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); // 开始监视代码运行时间 // 需要测试的代码 .... stopwatch.Stop(); // 停止监视 TimeSpan timespan 阅读全文
posted @ 2018-03-08 14:05 晓志 阅读(390) 评论(1) 推荐(1) 编辑
摘要: SELECT SessionID = s.Session_id, l.request_session_id spid, a.blocked, a.start_time, a.ecid, OBJECT_NAME(l.resource_associated_entity_id) tableName, a 阅读全文
posted @ 2017-06-06 18:13 晓志 阅读(390) 评论(0) 推荐(0) 编辑