代码改变世界

查询当前死锁情况

2021-05-08 11:56 by newbirth, 45 阅读, 0 推荐, 收藏, 编辑
摘要:SELECT ProcessType = 'Locked Process', spid, kpid, a.blocked, dbid, uid, loginame, cpu, login_time, open_tran, STATUS, hostname, program_name, hostpro 阅读全文

部署网站后IIS 应用程序池自动停止,浏览器页面提示503错误

2020-09-03 10:12 by newbirth, 960 阅读, 0 推荐, 收藏, 编辑
摘要:部署网站后IIS 应用程序池自动停止,浏览器页面提示503错误 如图: 查看事件管理器后发现有一堆url重写相关的异常,如图 C:\WINDOWS\system32\inetsrv\rewrite.dll 未能加载。返回的数据为错误. 问题:通过IIS内置的web平台管理工具 下载的url重写组件有 阅读全文

SQL Server datetime默认值设置1900-01-01 变成1905-03-14 问题

2020-07-21 15:27 by newbirth, 1137 阅读, 0 推荐, 收藏, 编辑
摘要:数据库中涉及datetime类型字段,设置默认值时 设置为'1900-01-01',注意带引号(''),不带引号,会出现错误,默认值会变成 1905/3/14 原因是 你那样设置,他当作是1900-1-1 = 1898。然后你一计算就知道了。select dateadd(dd,1898,'1900- 阅读全文

SQL Server缓存依赖设置

2020-07-03 09:42 by newbirth, 580 阅读, 0 推荐, 收藏, 编辑
摘要:1.为数据库VIAOSDB 启用缓存依赖,自动生成以下数据表和存储过程--表AspNet_SqlCacheTablesForChangeNotification --存储过程AspNet_SqlCachePollingStoredProcedureAspNet_SqlCacheQueryRegist 阅读全文

格式化文本(防止SQL注入)

2020-07-02 19:32 by newbirth, 443 阅读, 0 推荐, 收藏, 编辑
摘要:/// <summary> /// 格式化文本(防止SQL注入) /// </summary> /// <param name="str"></param> /// <returns></returns> public static string Formatstr(string html) { S 阅读全文

SQL脚本生成数据库文档

2020-06-30 17:24 by newbirth, 443 阅读, 1 推荐, 收藏, 编辑
摘要:SELECT (case when a.colorder=1 then d.name else '' end)表名, d.name 表名1, a.colorder 字段序号, a.name 字段名, (case when COLUMNPROPERTY( a.id,a.name,'IsIdentity 阅读全文

阿里云SQL Server远程连接配置

2020-06-18 11:52 by newbirth, 921 阅读, 0 推荐, 收藏, 编辑
摘要:1.阿里云后台安全组添加访问规则,如下图 2.阿里云服务器 登录后 防火墙添加入站规则 1433,如下图 阅读全文

RSA签名验证无法通过,检查以下部分

2019-04-17 11:04 by newbirth, 1845 阅读, 0 推荐, 收藏, 编辑
摘要:RSA签名验证无法通过,检查以下部分:1.是否和上游交换公钥,提交给上游的公钥是否配置正确并生效2.检查加密方式是SHA1还是MD5,是否跟上游一致3.上游采用的是否是base64SafeUrl的方式,是否特殊字符需要替换4.秘钥长度是1024还是2048,需要跟上游一致5.秘钥填充方式是PKCS1 阅读全文

windows开机自动登录

2018-09-21 11:21 by newbirth, 249 阅读, 0 推荐, 收藏, 编辑
摘要:控制台输入control userpasswords2 ,去掉下图中的√,输入登陆所用用户名密码即可。 阅读全文

c# 进程调用exe

2018-08-10 15:41 by newbirth, 876 阅读, 0 推荐, 收藏, 编辑
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Diagnostics; 5 using System.Text; 6 using System.Threading; 7 8 namespace AliPayaDyn... 阅读全文