摘要: 大家在写查询时,为了性能,往往会在表后面加一个nolock,或者是with(nolock),其目的就是查询是不锁定表,从而达到提高查询速度的目的。什么是并发访问:同一时间有多个用户访问同一资源,并发用户中如果有用户对资源做了修改,此时就会对其它用户产生某些不利的影响,例如: 1:脏读,一个用户对... 阅读全文
posted @ 2011-12-20 10:28 liningit 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 方法一:DataTable dt = (DataTable)gvDraftList.DataSource;DataSet ds=new DataSet();ds.Merge(dt.Select(where));gvDraftList.DataSource = ds.Tables[0];方法二:Dat... 阅读全文
posted @ 2011-11-25 09:24 liningit 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 用方法 _applicationObject.ItemOperations.OpenFile(f.Directory.FullName + @"\Js\PageJavaScript\" + strTemp + ".js", Constants.vsViewKindCode);如果用_applicat... 阅读全文
posted @ 2011-11-23 10:00 liningit 阅读(234) 评论(0) 推荐(0) 编辑
摘要: string fullPath = @"\WebSite1\Default.aspx";string filename = System.IO.Path.GetFileName(fullPath);//文件名 “Default.aspx”string extension = System.IO.Pa... 阅读全文
posted @ 2011-10-13 17:28 liningit 阅读(159) 评论(0) 推荐(0) 编辑
摘要: (1)在sql server 建个函数ClearZero,使用这个函数去掉小数点后面多余的零。CREATE function [dbo].[ClearZero](@inValue varchar(50))returns varchar(50)asbegindeclare @returnValue v... 阅读全文
posted @ 2011-02-28 11:48 liningit 阅读(1176) 评论(0) 推荐(0) 编辑
摘要: declare @i as intset @i = 344456676print convert(varchar(20),cast(@i as money),1) 版权声明:本文为博主原创文章,未经博主允许不得转载。 阅读全文
posted @ 2011-01-28 10:27 liningit 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 安装Office2007后,每次启动Office2007时都要进行安装配置。解决办法:在C:/Program Files/Common Files/microsoft shared/OFFICE12/Office Setup Controller目录下将SETUP.EXE 重命名为 SETUP1.E... 阅读全文
posted @ 2010-12-30 09:03 liningit 阅读(715) 评论(0) 推荐(0) 编辑
摘要: 将安全性>登录里面类型为windows 组的安全性访问设为拒绝访问就可以了 版权声明:本文为博主原创文章,未经博主允许不得转载。 阅读全文
posted @ 2010-10-11 13:54 liningit 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 在项目做好后实施了以后,可能因为需求等原因需要升级,这时候一般都是在测试系统改好后在更新到正式系统.存储过程,视图等可以直接通过全部删除在创建进行更新,但是表因为正式系统里已有数据所以无法通过该方式进行更新.只能更改表结构,而这时有可能因为更改的表结构比较多,而出现有的表忘了更新.该程序可以对比两个... 阅读全文
posted @ 2010-08-31 17:00 liningit 阅读(327) 评论(0) 推荐(0) 编辑
摘要: Server.UrlEncode("中文")HttpUtility.UrlEncode("中文", Encoding.Default)HttpUtility.UrlEncode("中文", Encoding.Unicode)HttpUtility.UrlEncode("中文", Encoding.B... 阅读全文
posted @ 2010-08-30 12:00 liningit 阅读(164) 评论(0) 推荐(0) 编辑