我安装的是vs2012,先找到SPY++工具打开 打开方式: 方式1:通过路径(C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Visual Studio 2012\Visual Studio Tools)找到SPY++工具
SELECT LOCK_INFO.OWNER || '.' || LOCK_INFO.OBJ_NAME AS OBJ_NAME --对象名称(已经被锁住) ,LOCK_INFO.SUBOBJ_NAME AS SUBOBJ_NAME --子对象名称(已经被锁住) ,SESS_INFO.MACHINE AS MACHINE --机器名称 ,LOCK_INFO.SESSION_ID AS SESSION_ID --会话SESSION_ID ,SESS_INFO.SERIAL# AS SERIAL# -