12 2017 档案
摘要:匹配中文:[\u4e00-\u9fa5]英文字母:[a-zA-Z]数字:[0-9]匹配中文,英文字母和数字及_:^[\u4e00-\u9fa5_a-zA-Z0-9]+$
阅读全文
摘要:using System.Security.Cryptography; static string md5(string str, int code) { if (code == 16) //16位MD5加密(取32位加密的9~25字符) { return System.Web.Security.F
阅读全文
摘要:sys.fn_sqlvarbasetostr(HashBytes('MD5','123456'))
阅读全文
摘要:1、获取SQL Server允许同时用户连接的最大数 SELECT @@MAX_CONNECTIONS 2、获取当前指定数据库的连接信息 SELECT * FROM master.dbo.sysprocesses WHERE dbid IN ( SELECT dbid FROM master.dbo
阅读全文
摘要:Sql server 的完整备份和差异备份 完整备份当然就是将数据库的数据全部备份 而差异备份指得是将上一次备份后到现在对数据的修改进行备份. 因此差异备份不能单独使用,只能先还原上一次的完整备份后,才能还原差异备份, 当有多个差异备份时,只需要选择指定日期的差异备份文件即可,不需要逐个还原在此期间
阅读全文
摘要:set curdir=%~dp0cd /d %curdir%regsvr32 /u Client.ocxregsvr32 Client.ocx
阅读全文
摘要:敏感词匹配 1 string[] strs2 = File.ReadAllLines(System.AppDomain.CurrentDomain.BaseDirectory + @"Files\Cache\SensitiveWords.txt", Encoding.UTF8); 2 List<st
阅读全文