查询结果一直处于查询状态,表被锁。
摘要:执行一条查询语句,结果一直显示的是查询状态,没有出来结果。原来是在执行的一个存储过程里加了事务,但是这个执行存储过程出了错。于是想到,肯定是这个表被锁住了。接下来就好办了。select request_session_id spid,OBJECT_NAME(resource_associated...
阅读全文
posted @
2014-07-29 20:57
xuxu_dragon
阅读(509)
推荐(0)
异常System.Web.HttpException (0x80004005): Server cannot set status after HTTP headers have been sent.
摘要:在用mvc 的AuthorizeAttribute做身份验证,重写HandleUnauthorizedRequest方法,在Application_Error方法里出现异常System.Web.HttpException (0x80004005): Server cannot set status ...
阅读全文
posted @
2014-07-18 18:40
xuxu_dragon
阅读(1892)
推荐(0)
Entity Framework Lambda 实现多列Group by,并汇总求和
摘要:var result = DataSummaryRepository.FindBy(x => x.UserID == argMemberNo && x.SummaryDate = argStarDate).OrderByDescending(x => x.SummaryDate).GroupBy(x...
阅读全文
posted @
2014-07-04 15:15
xuxu_dragon
阅读(14593)
推荐(0)
瀑布流代码 带分页
摘要:Index.cshtml@using PagedList.Mvc@model PagedList.StaticPagedList@{ ViewBag.Title = "分享"; Layout = "~/Views/Shared/_Layout.cshtml"; Random rd ...
阅读全文
posted @
2014-07-04 10:32
xuxu_dragon
阅读(2196)
推荐(0)
SQL 如果存在就更新,如果不存在就添加,使用 Merge 函数(SQL2008版本及以上)
摘要:USE [NationalUnion]GO/****** Object: StoredProcedure [dbo].[proc_DataSummary] Script Date: 07/03/2014 15:33:11 ******/SET ANSI_NULLS ONGOSET QUOTE...
阅读全文
posted @
2014-07-03 17:44
xuxu_dragon
阅读(726)
推荐(0)