11 2011 档案
更改SQL Server 2008数据库登录方式 [转]
摘要:如果在安装过程中选择“Windows 身份验证模式”,则 sa 登录名将被禁用。如果稍后将身份验证模式更改为“SQL Server 和 Windows 身份验证模式”,则 sa 登录名仍处于禁用状态。若要启用 sa 登录帐户,请使用 ALTER LOGIN 语句。安全说明:sa 帐户是一个广为人知的 SQL Server 帐户,并且经常成为恶意用户的攻击目标。除非您的应用程序需要使用 sa 帐户,否则请不要启用它。为 sa 登录名使用一个强密码非常重要。sa 登录名只能使用 SQL Server 身份验证连接到服务器。更改安全身份验证模式在 SQL Server Management Stu. 阅读全文
posted @ 2011-11-23 17:33 Alan Yang 阅读(1733) 评论(0) 推荐(0)
Enums and Structs in C# [Author:Nishant Sivakumar]
摘要:http://www.codeproject.com/KB/cs/csenums01.aspxIntroductionJust about everything is a heap object when you are using C#. Only elementary native types like int are treated as value types. But there are two value types in C# that are pretty much more useful that first glances would tell you. They are. 阅读全文
posted @ 2011-11-16 17:24 Alan Yang 阅读(310) 评论(0) 推荐(0)
常用的C#正则表达式! [转]
摘要:常用的C#正则表达式 "^\d+$" //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$" //正整数 "^((-\d+)|(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数 "^-?\d+$" //整数 "^\d+(\.\d+)?$" //非负浮点数(正浮点数 + 0) "^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|( 阅读全文
posted @ 2011-11-14 18:23 Alan Yang 阅读(236) 评论(1) 推荐(0)