Don't think you are, know you are

博客园 首页 新随笔 管理

2008年5月10日 #

摘要: 不必借助监控程序(例如WIndows的性能计数器或SQL Server Profiler),SqlConnection也能获取T SQL的执行状态,结果可用于性能分析。程序片断如下:...... sConn.StatisticsEnabled = true;if (!string.IsNullOrEmpty(iSQL)) { using (SqlCommand iCmd=new SqlComma... 阅读全文
posted @ 2008-05-10 22:07 炭炭 阅读(576) 评论(0) 推荐(0) 编辑