locking - DMV to identify Database Lock scenarios in SQL Server 2012 -
i have batch process runs every night. once process completes, see there records has not processed completely. think might encountering locking scenario while running multiple updates on single table.
what best way troubleshoot locking in database using dmvs? there particular dmv, can run in morning(after batch has completed) - provide me information on locked processes encountered sql engine,during nightly run.
contains information processes running on instance of sql server.
the below command gets blocked processes
select * sys.sysprocesses blocked > 0
Comments
Post a Comment