CURRENT_REQUEST_ID vs SESSION_ID


hi,

we have application uses mars.  (it converted datacom , uses cobol.)  use sys.dm_exec_requests performance information @ various points in code - ether in batch or procedure.  in past, summed records session_id of @@spid.  now, think need to remove sum , 1 request record session_id = @@spid and request_id = current_request_id().  getting same request record when query run in specific batch or procedure? 

thanks, randy


randy in marin

oh, yes.  embedding in batch work.  that's cool solution.

david


david http://blogs.msdn.com/b/dbrowne/



SQL Server  >  SQL Server Database Engine



Comments

Popular posts from this blog

BIT Version

SQL Server PSProvider SQL Server Authentication

set datagrid current record to inserted record