摘要: using System.Text; /// <summary>/// ToChineseValue 的摘要说明/// 人民币(RMB)转化为大写字母 /// </summary>public class ToChineseValue{ private enum chineseChar { 零, 壹 阅读全文
posted @ 2018-08-24 12:01 未始有物 阅读(564) 评论(0) 推荐(0) 编辑
摘要: 在ASP.NET MVC中,ModelState中包含了验证失败的错误信息,具体被存储在ModelState.Values[i].Errors[j].ErrorMessage属性中。当然,通过打断点,单步调试可以查看具体的验证失败错误信息,但有时候希望把ModelState中的验证失败信息遍历显示出 阅读全文
posted @ 2017-12-19 19:10 未始有物 阅读(652) 评论(0) 推荐(0) 编辑
摘要: 一、网站 http://www.icourses.cn (爱课程) 个高等教育课程资源共享平台,集中展示“中国大学视频公开课”和“中国大学资源共享课” http://www.jinxuliang.com http://www.runoob.com/ 菜鸟教程 https://developer.mo 阅读全文
posted @ 2017-09-28 09:10 未始有物 阅读(573) 评论(0) 推荐(0) 编辑
摘要: sp_locksp_whosp_who2sp_who2 'active';dbcc inputbuffer(64)--查詢阻塞spidselect blocking_session_id,wait_duration_ms,session_id,wait_type fromsys.dm_os_wait... 阅读全文
posted @ 2014-12-01 14:34 未始有物 阅读(476) 评论(0) 推荐(0) 编辑
摘要: TRADITIONAL CHINESE_TAIWAN.ZHT16MSWIN950AMERICAN_AMERICA.AL32UTF8返回当前环境的语言SELECT * FROM NLS_DATABASE_PARAMETERS WHERE PARAMETER IN ('NLS_LANGUAGE','NL... 阅读全文
posted @ 2014-10-10 10:21 未始有物 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 簡單說就是產生了 dead lock--Thread A&B 你想像成兩隻procResource X&Y 你想像成兩個table兩個proc 同時執行,造成互相鎖定MS-SQL 對這個問題的解決方式,就是讓其中一個 rollback被rollback 那個就被稱作 死結的犧牲者 阅读全文
posted @ 2014-07-10 16:08 未始有物 阅读(147) 评论(0) 推荐(0) 编辑
摘要: SQL语句收集1、查看SQL Server版本SELECT SERVERPROPERTY('productversion')SELECT SERVERPROPERTY('productlevel')SELECT SERVERPROPERTY('edition')SELECT @@VERSION2、查... 阅读全文
posted @ 2014-06-20 14:47 未始有物 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-07-14 10:50 未始有物 阅读(426) 评论(0) 推荐(0) 编辑
摘要: /// /// DES加密 /// /// /// /// public static string DESEncrypt(string pToEncrypt, string sKey) { if (sKey == string.Empty) sKey = "pccweb12".PadLeft(8, 'X'); DESCryptoServiceProvider des = new DESCryptoServiceProvider(); byte[] inputByteArray = Encoding.Default.GetBytes(pToEncrypt); 阅读全文
posted @ 2013-07-14 10:13 未始有物 阅读(506) 评论(0) 推荐(0) 编辑
摘要: TRANSACTION議題 將大型交易拆成數個小型交易 增刪修之間如果有包含大量查詢語法,一樣造成transaction等待ex. 下列語法table1 新增的資料會被lock 直到 commit =5秒後 Begin transaction insert into table1 (1,1,1,1) 阅读全文
posted @ 2013-06-30 15:17 未始有物 阅读(309) 评论(0) 推荐(0) 编辑