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.

sys.sysprocesses

contains information processes running on instance of sql server.

the below command gets blocked processes

select * sys.sysprocesses blocked > 0 

Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -