上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 29 下一页
摘要: 转摘:https://jingyan.baidu.com/article/e75057f2c413e8ebc91a89b0.html 1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索 2.应尽量避免在 where 子句中对字段进行 null 值 阅读全文
posted @ 2019-07-09 14:08 人生为卒 阅读(2271) 评论(0) 推荐(0) 编辑
摘要: sql表内存占用情况 IF OBJECT_ID('tempdb..#TablesSizes') IS NOT NULL DROP TABLE #TablesSizes CREATE TABLE #TablesSizes ( TableName sysname , Rows BIGINT , rese 阅读全文
posted @ 2019-07-01 15:50 人生为卒 阅读(329) 评论(0) 推荐(0) 编辑
摘要: SELECT request_session_id spid, OBJECT_NAME( resource_associated_entity_id ) tableName FROM sys.dm_tran_locks WHERE resource_type = 'OBJECT' ORDER BY request_session_id ASC 阅读全文
posted @ 2019-07-01 10:37 人生为卒 阅读(120) 评论(0) 推荐(0) 编辑
摘要: SQL 设置不写日志ALTER DATABASE [dbName] SET RECOVERY SIMPLE SQL 设置写日志 ALTER DATABASE [dbName] SET RECOVERY FULL 阅读全文
posted @ 2019-06-27 17:58 人生为卒 阅读(560) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 返回属性字段,作用是Sql查询的时候用来替换 * , *查询会影响运行速度 /// </summary> /// <typeparam name="T"></typeparam> /// <returns></returns> public string GetM 阅读全文
posted @ 2019-06-20 14:41 人生为卒 阅读(436) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Diagnostics; using System.Management; public class DeviceMonitor { static readonly PerformanceCounter cpuCounter = new PerformanceCounter("Processor", "% Processor... 阅读全文
posted @ 2019-06-20 11:43 人生为卒 阅读(181) 评论(0) 推荐(0) 编辑
摘要: /// /// 网络测试 /// private void TestNet( ) { //远程服务器IP string ipStr = "192.168.0.8"; //构造Ping实例 Ping pin... 阅读全文
posted @ 2019-06-20 11:41 人生为卒 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 转摘:https://www.cnblogs.com/sunxi/p/5942688.html 下面是数据库的结构: 数据库名是:edushi_zixunok;表名是infoArticle --获取所有用户名 SELECT * FROM sys.sysusers --获取所有用户数据库 SELECT 阅读全文
posted @ 2019-06-17 15:44 人生为卒 阅读(1901) 评论(0) 推荐(0) 编辑
摘要: 转摘:http://www.accessoft.com/article-show.asp?id=17336 查询执行的SQL语句 Select TOP 1000 ST.text AS '执行的SQL语句', QS.execution_count AS '执行次数', QS.total_elapsed 阅读全文
posted @ 2019-06-13 18:42 人生为卒 阅读(5584) 评论(0) 推荐(0) 编辑
摘要: 转摘: https://blog.csdn.net/sgmcumt/article/details/83021616 log4net不输出日志文件主要有以下几个原因: 1 没有在AssemblyInfo文件中添加下面的代码:[assembly: log4net.Config.XmlConfigura 阅读全文
posted @ 2019-06-06 14:01 人生为卒 阅读(1876) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 29 下一页