代码改变世界

阅读排行榜

c# 一个记录日志的通用方法

2016-05-10 14:44 by newbirth, 1044 阅读, 收藏,
摘要: public static string WriteFile(string strText, string path) { Encoding code = Encoding.GetEncoding("gb2312"); StreamWriter sw = null; string filename = Da... 阅读全文

Sqlserver 存储过程 返回-6

2017-05-02 10:20 by newbirth, 1032 阅读, 收藏,
摘要: 存储过程中没有返回 手动返回-6的代码,但是一直接收到-6返回值。 经最后研究发现,是粗心导致的,Insert插入数据时在非空字段插入了Null值导致出现异常,所以返回了-6。 所以说在事务中,可能会出错的地方都需要有异常处理,以帮助更好的判断哪里出了问题。 特此记录,引以警惕。 阅读全文

c# DataTable 数据集处理DataTableHandler

2016-09-14 09:32 by newbirth, 1003 阅读, 收藏,
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Linq; using System.Reflection; using System.Text; using System.Collections; using System.I... 阅读全文

c# 加密工具类

2016-09-14 09:35 by newbirth, 966 阅读, 收藏,
摘要: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Web.Secur... 阅读全文

阿里云SQL Server远程连接配置

2020-06-18 11:52 by newbirth, 936 阅读, 收藏,
摘要: 1.阿里云后台安全组添加访问规则,如下图 2.阿里云服务器 登录后 防火墙添加入站规则 1433,如下图 阅读全文
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页