一.执行效率 1. DOM 1.1 使用DocumentFragment优化多次append 说明:添加多个dom元素时,先将元素append到DocumentFragment中,最后统一将DocumentFragment添加到页面。 该做法可以减少页面渲染dom元素的次数。经IE和Fx下测试,在append1000个元素时,效率能提高10%-30%,Fx下提升较为明显。 服用前: for (v... Read More
posted @ 2008-10-23 16:55
温景良(Jason)
Views(391)
Comments(0)
Diggs(0)
在数据库内创建的每个对象(约束、默认值、日志、规则、存储过程等)在表中占一行。只有在 tempdb 内,每个临时对象才在该表中占一行。 name sysname 对象名。 Id int 对象标识号。 xtype char(2) 对象类型。可以是下列对象类型中的一种: C = CHECK ... Read More
posted @ 2008-10-23 11:38
温景良(Jason)
Views(545)
Comments(0)
Diggs(0)
-- 比较两个数据库中表的差异 -- u表,p存储过程,v视图 -- INTFSIMSNEW新库,INTFSIMS旧库 SELECT NTABLE = A.NAME, OTABLE = B.NAME FROM INTFSIMSNEW..SYSOBJECTS A LEFT JOIN INTFSIMS..SYSOBJECTS B ON A.NAME = B.NAME WHERE ISNUL... Read More
posted @ 2008-10-23 11:36
温景良(Jason)
Views(3415)
Comments(0)
Diggs(0)
查看死锁存储过程 Posted on 2008-10-17 10:06 西北的荒漠 阅读(12) 评论(0) 编辑 收藏 网摘 use master go create procedure sp_who_lock as begin declare @spid int,@bl int, @intTransactionCountOnEntry int, @intRowcount ... Read More
posted @ 2008-10-23 11:31
温景良(Jason)
Views(330)
Comments(0)
Diggs(0)
----------------------------------------------------- --作用:用于sql server 2005 导出用户表数据字典 --1 默认导出当前数据库中所有用户表(xtype = 'u')的数据字典; --2 可以在xtype = 'u'替换为如下所示语句xtype = 'u' and name in ('son','Person') 导出自定义... Read More
posted @ 2008-10-23 11:29
温景良(Jason)
Views(2051)
Comments(0)
Diggs(1)
随着互联网应用更频繁,RIA技术成为以后互联网发展的重要技术. 第一步,新建Flash(ActionScript3.0)文件,取名a.fla,然后设置其docmentclass参数为a.as.注意在ActionScript里文件名要跟类名一样,要不然认不到,这点跟JAVA有点像. 点击发布按钮设置该Flash文件的参数如图 在ActionScript脚本... Read More
posted @ 2008-10-23 08:55
温景良(Jason)
Views(418)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号