You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -58,17 +57,20 @@ On SQL Database Basic, S0, and S1 service objectives, and for databases in elast
58
57
The following example shows any active transactions on the system and provides detailed information about the transaction, the user session, the application that submitted, and the query that started it and many others.
59
58
60
59
```sql
61
-
select
62
-
getdate() as now,
60
+
SELECT
61
+
GETDATE() as now,
63
62
DATEDIFF(SECOND, transaction_begin_time, GETDATE()) as tran_elapsed_time_seconds,
63
+
st.session_id,
64
+
txt.text,
64
65
*
65
66
FROM
66
67
sys.dm_tran_active_transactions at
67
-
JOINsys.dm_tran_session_transactions st ONst.transaction_id=at.transaction_id
0 commit comments