Kill only user processes in SQL Server
问题 We have users that forget to close their access queries that use our SQL 2014 databases. When this happens it prevents the tables they are accessing from being rebuilt over night. Is there any way to Kill these users and not kill the system processes. From what I've read system processes are not only limited to SPID >50. 回答1: Killing user processes based on spid>=50 seems to be not reliable. From Adam Machanic:Smashing a DMV Myth: session_id > 50 == User Process A recent conversation on an