摘要:
今天群里讨论查询是否产生日志,当然在用户数据库里面是不产生的,但是涉及到tempdb的查询呢?小弟认为是在tempdb产生了日志:USE tempdbDECLARE @lsn nvarchar(100)SELECT TOP 1 @lsn = [Current LSN]FROM fn_dblog (NULL, NULL) ORDER BY [Current LSN] DESC;select @lsnSELECT * FROM AppServerProcesses.dbo.DB_PerformanceCounter ORDER BY addtime DESCSELECT TOP 100 *FRO. 阅读全文