10 2023 档案

摘要:--连接数 SELECT count(0) as ConnectCount from sys.dm_exec_connections --死锁数量 select cntr_value from sys.dm_os_performance_counters where counter_name = ' 阅读全文
posted @ 2023-10-31 10:52 博客YS 阅读(126) 评论(0) 推荐(0) 编辑
摘要:1、路径相关 //程序的完整路径 string appPath = Process.GetCurrentProcess().MainModule.FileName; //操作系统的自启动目录 string sysAutoStartPath = Environment.GetFolderPath(En 阅读全文
posted @ 2023-10-27 13:21 博客YS 阅读(2364) 评论(0) 推荐(0) 编辑
摘要:设置: 视图》工具栏》勾选视图设计器 正常右击表,编辑前200行 点击1,会显示编辑前200行SQL,添加where条件,点击2执行, 即可进行编辑数据 修改编辑前n行(默认编辑前200)工具》选项》sqlserver对象资源管理器》命令》编辑前N行 阅读全文
posted @ 2023-10-18 19:20 博客YS 阅读(471) 评论(0) 推荐(0) 编辑
摘要:/************************************************* * 描述: * * Author:ys * Date:2023/10/18 16:14:32 * Update: * **************************************** 阅读全文
posted @ 2023-10-18 16:22 博客YS 阅读(92) 评论(0) 推荐(0) 编辑
摘要:当程序多个dll引用同一个dll的不同版本时,程序启动会报错,此时需要在启动程序集的App.config下增加以下配置 以log4为例子 <configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Ver 阅读全文
posted @ 2023-10-13 17:23 博客YS 阅读(397) 评论(0) 推荐(0) 编辑
摘要:if(File.Exists(copyPath + "\\" + name)==true) { //删除提示访问被拒绝,增加此行代码 new FileInfo(filePath).Attributes = FileAttributes.Normal; File.Delete(copyPath + " 阅读全文
posted @ 2023-10-11 19:47 博客YS 阅读(506) 评论(1) 推荐(1) 编辑

点击右上角即可分享
微信分享提示