A.連接到DB1數(shù)據(jù)庫,執(zhí)行DBCC OPENTRAN命令,查看SPID和Start time行
B.連接到master數(shù)據(jù)庫,執(zhí)行DBCC OPENTRAN. 查看SPID和Start time行
C.在SQL Server Management Studio,打開活動監(jiān)視器,選擇進程信息頁。然后用數(shù)據(jù)庫=DB1和打開的事務(wù)=yes為條件進行篩選,查看結(jié)果中的進程ID和上一批列
D.打開查詢窗口,連接到master數(shù)據(jù)庫,執(zhí)行如下SQL語句SELECT TOP 1 spid,last_batch FROM sys.sysprocesses WHERE dbid = db_id(’DB1’) AND open_tran > 0 ORDER BY last_batch