TSQL中是否有与ASP.NET Response.Clear()
等效的内容?
在某些情况下,我需要从之前选择的缓冲区中删除结果集。
编辑:
update [ViewCounts] set [SiteViews] += 1 OUTPUT INSERTED.SiteViews
where [PageID] = @PageID AND [LastIP] <> @IP
IF @@ROWCOUNT = 0
BEGIN
--- Need to clear the the empty (OUTPUT INSERTED.SiteViews) buffer here, as it crashes the Entity Framework
select [SiteViews] from [ViewCounts] where [PageID] = @PageID
END