代码改变世界

阅读排行榜

常用字符串加密解密方法

2016-09-13 11:24 by newbirth, 8022 阅读, 收藏,
摘要: 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... 阅读全文

C# ,asp.net 获取当前,相对,绝对路径

2018-04-28 15:41 by newbirth, 7412 阅读, 收藏,
摘要: 一、C#获取当前路径的方法: 1. System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName -获取模块的完整路径。 2. System.Environment.CurrentDirectory -获取和设置当前目录(该进程 阅读全文

SQL Server 数据库性能优化

2016-10-26 17:34 by newbirth, 6432 阅读, 收藏,
摘要: 1. 查看执行时间和cpu set statistics time on select * from Bus_DevHistoryData set statistics time off 执行后在消息里可以看到 2. 查看查询对I/O的操作情况 set statistics io on select 阅读全文

sqlserver查找使用了某个字段的所有存储过程

2016-11-29 11:23 by newbirth, 6114 阅读, 收藏,
摘要: SELECT obj.Name 存储过程名, sc.TEXT 存储过程内容 FROM syscomments sc INNER JOIN sysobjects obj ON sc.Id = obj.ID WHERE sc.TEXT LIKE '%自己要查的内容%' 阅读全文

c# DataTable导出为excel

2016-08-11 16:55 by newbirth, 5250 阅读, 收藏,
摘要: /// /// 将DataTable导出为Excel文件(.xls) /// /// 要导出的DataTable public static void ExportToExcel(System.Data.DataTable dt) { if (dt == null) return; ... 阅读全文
上一页 1 2 3 4 5 6 ··· 16 下一页