导航

摘要: SELECT idx.name 索引名称,obj.name 表名,col.name 索引字段名,'create index '+idx.name +' on '+obj.name +'('+col.name +')'+';' 创建索引语句FROM sysindexes idx JOIN sysind 阅读全文

posted @ 2021-03-10 10:59 雨-夜 阅读(65) 评论(0) 推荐(0) 编辑

2021年4月28日

摘要: NuGet国内镜像 https://nuget.cdn.azure.cn/v3/index.json 阅读全文

posted @ 2021-04-28 11:50 雨-夜 阅读(237) 评论(0) 推荐(0) 编辑

2021年3月10日

摘要: 近期发现数据服务器中数据库所在盘被占用的特别严重,一个800G的盘只剩下不到100G,排除备份所占用的其他的空间竟然有400G被安装目录下的分发数据库distribution.MDF所占用。 分发数据库distribution.MDF因为SQL代理“ 分发清除: distribution”停止了导致 阅读全文

posted @ 2021-03-10 23:43 雨-夜 阅读(774) 评论(0) 推荐(0) 编辑

摘要: with kk AS( SELECT TOP 2000 total_worker_time/1000 AS [总消耗CPU 时间(ms)],execution_count [运行次数], qs.total_worker_time/qs.execution_count/1000 AS [平均消耗CPU 阅读全文

posted @ 2021-03-10 11:01 雨-夜 阅读(339) 评论(0) 推荐(0) 编辑

2018年2月28日

摘要: 示例 原文件结构: 替换后文档结构: 软件截图: 代码: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; usi 阅读全文

posted @ 2018-02-28 17:34 雨-夜 阅读(1020) 评论(0) 推荐(0) 编辑

2018年1月26日

摘要: /// <summary> /// 根据窗体Name打开窗体 /// </summary> /// <param name="name"></param> /// <returns></returns> public Form FindForm(string name) { Assembly ass 阅读全文

posted @ 2018-01-26 10:53 雨-夜 阅读(1441) 评论(0) 推荐(0) 编辑

摘要: select '''' + ID +''',' from 表 for xml path('') 此SQL语句,输出结果如‘1’,’2‘,’3‘, 但是在因xml会出现path转译的问题将‘转成&apos 解决方案: 1、 select (select '''' + ID +''',' from 表 阅读全文

posted @ 2018-01-26 10:52 雨-夜 阅读(537) 评论(0) 推荐(0) 编辑

2012年5月4日

摘要: //校验是否全由数字组成 function isDigit(s) { var patrn=/^[0-9]{1,20}$/; if (!patrn.exec(s)) return false return true }//校验登录名:只能输入5-20个以字母开头、可带数字、“_”、“.”的字串 function isRegisterUserName(s) { var patrn=/^[a-zA-Z]{1}([a-zA-Z0-9]|[._]){4,19}$/; if (!patrn.exec(s)) return false return true }//校验用户姓名:只能输入1-30... 阅读全文

posted @ 2012-05-04 15:12 雨-夜 阅读(188) 评论(0) 推荐(0) 编辑

摘要: INSERT INTO excel SELECT * FROM OPENROWSET('MICROSOFT.JET.OLEDB.4.0' ,'Excel 5.0;HDR=YES;DATABASE=D:\Book1.xls',无公式$)//开启Ad Hoc Distributed Queries EXEC sp_configure 'show advanced options', 1 GO RECONFIGURE with override GO EXEC sp_configure 'Ad Hoc Distributed Queries&# 阅读全文

posted @ 2012-05-04 15:02 雨-夜 阅读(184) 评论(0) 推荐(0) 编辑

摘要: delete from companyepe where companyno in (select companyno from companyepe group by companyno having count(companyno) > 1)and companyid not in (select min(companyid) from companyepe group by companyno having count(companyno )>1) 阅读全文

posted @ 2012-05-04 15:01 雨-夜 阅读(160) 评论(0) 推荐(0) 编辑