摘要: 有时候需要调用多次SubmitChanges(),需要手工使用事务处理。 阅读全文
posted @ 2008-08-12 14:44 王其荣的博客 阅读(554) 评论(0) 推荐(0) 编辑
摘要: CodeProject上面抄来的 阅读全文
posted @ 2008-08-12 14:40 王其荣的博客 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 感谢51js版主 阅读全文
posted @ 2008-08-12 14:39 王其荣的博客 阅读(1071) 评论(0) 推荐(0) 编辑
摘要: 验证中英文混合字符长度的一种方法 阅读全文
posted @ 2008-08-12 14:30 王其荣的博客 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 可以用来在服务器上ping其它服务器,有时候调试的时候用得到。 阅读全文
posted @ 2008-08-12 14:28 王其荣的博客 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 可控制Flash Player的Javascript方法一览表 阅读全文
posted @ 2008-08-12 14:25 王其荣的博客 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 尽量使用:SELECT CAST(scope_identity() AS int) 注意: 如果没有使用ExecuteScalar(),可能需要在前面加 SET NOCOUNT ON; 即,SET NOCOUNT ON; INSERT INTO ...; SELECT CAST(scope_identity() AS int) theNewId SCOPE_IDENTITY、IDENT_C... 阅读全文
posted @ 2008-08-12 14:17 王其荣的博客 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->0then'有错误发生 conn.rollbacktrans'回滚 setrs=nothing conn.close setconn=nothing re... 阅读全文
posted @ 2008-08-12 14:16 王其荣的博客 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 今天用Access做sql查询的时候出现了比较奇怪的问题: 用: select top 10 * from [BBSXP_Threads] where IsDel=0 order by views 却返回 大于 10 行的记录,根据理论应该是返回 按 views 排序后的 前10个记录。可是在Access中却显示大于 10 行的记录。 原来Access把按views进行排序,当views的某些记录... 阅读全文
posted @ 2008-08-12 14:14 王其荣的博客 阅读(592) 评论(0) 推荐(0) 编辑