每天积累一点,才会成长......

2012年11月19日

启用 Sql Server 代理

摘要: sp_configure 'show advanced options', 1;GORECONFIGURE;GOsp_configure 'Agent XPs', 1;GORECONFIGUREGO 阅读全文

posted @ 2012-11-19 16:03 wenbo 阅读(185) 评论(0) 推荐(0) 编辑

2012年6月27日

radio

摘要: $('input:radio[checked=checked]').val() 阅读全文

posted @ 2012-06-27 14:31 wenbo 阅读(150) 评论(0) 推荐(0) 编辑

2010年3月4日

合并DataTable

摘要: //两个结构一样的DT合并DataTable DataTable1 = new DataTable();DataTable DataTable2 = new DataTable();DataTable newDataTable = DataTable1.Clone(); object[] obj =... 阅读全文

posted @ 2010-03-04 10:25 wenbo 阅读(227) 评论(0) 推荐(0) 编辑

2010年1月10日

c#分页打印类

摘要: using System;using System.Collections.Generic;using System.Text;using System.Drawing.Printing;using System.Drawing;using System.Windows.Forms;namespac... 阅读全文

posted @ 2010-01-10 10:58 wenbo 阅读(1795) 评论(0) 推荐(0) 编辑

2009年4月18日

ASP.NET安全性

摘要: 输入安全性 身份验证 授权 ASP.NET模拟 存储机密 使用加密 ASP.NET安全使用最佳实践 输入安全性 1,验证所有的输入:一般情况下使用asp.net的验证控件,其他情况下使用正则表达式(e.g.,web server 参数)。 2,对于输出的数据要加密。 3,使用参数化的存储过... 阅读全文

posted @ 2009-04-18 22:43 wenbo 阅读(307) 评论(0) 推荐(0) 编辑
DataFormatString

摘要: DataFormatString="{0:格式字符串}" 在DataFormatString 中的 {0} 表示数据本身,而在冒号后面的格式字符串代表所们希望数据显示的格式;数字、货币格式:在指定的格式符号后可以指定小数所要显示的位数。例如原来的数据为「1.56」,若格式设定为 {0:N1},则输出... 阅读全文

posted @ 2009-04-18 22:42 wenbo 阅读(198) 评论(0) 推荐(0) 编辑
sql

摘要: USE tempdbGOCreate TABLE #t1 (c1 int NOT NULL, c2 char(5), c3 char(5),c4 char(5))GOCreate TABLE #t2 (c1 int NOT NULL, c2 char(5), c3 char(5), c4 char(... 阅读全文

posted @ 2009-04-18 22:41 wenbo 阅读(155) 评论(0) 推荐(0) 编辑
随机数

摘要: declare @re int,@num int select @num =8 select @re=CONVERT(int, POWER(10,@num)*RAND()) if len(@RE) select POWER(10,@num-len(@RE))*@re else select @re 阅读全文

posted @ 2009-04-18 22:40 wenbo 阅读(136) 评论(0) 推荐(0) 编辑
alter table

摘要: create table BankCard ( cardId char(10), UserName Varchar(20) not null, Password char(6) not null, Balancemoney ) 先创建一个表 再修改表 alter table BankCard... 阅读全文

posted @ 2009-04-18 22:39 wenbo 阅读(346) 评论(0) 推荐(0) 编辑
SQL数据库用户只有“名称”而无“登陆名”解决

摘要: execsp_change_users_login'UPDATE_ONE',没有登陆名的数据库用户,'新的登陆名'go原因: SQL备份的问题有一台SQL SERVER 服务器,将其中的数据库DataBase1备份成一个文件,在另外一台SQL SERVER服务器上还原,数据表和存储过程等恢... 阅读全文

posted @ 2009-04-18 22:37 wenbo 阅读(336) 评论(0) 推荐(0) 编辑