有没有办法在 SQL Server 2000 数据库上列出打开的事务? [英] Is there a way to list open transactions on SQL Server 2000 database?

查看:23
本文介绍了有没有办法在 SQL Server 2000 数据库上列出打开的事务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道在 SQL Server 2000 数据库上列出打开的事务的任何方法?

Does anyone know of any way to list open transactions on SQL Server 2000 database?

我知道我可以在 SQL 2005(及更高版本)数据库版本上查询视图 sys.dm_tran_session_transactions,但是这在 SQL 2000 上不可用.

I am aware that I can query the view sys.dm_tran_session_transactions on SQL 2005 (and later) database versions, however this is not available on SQL 2000.

推荐答案

对于所有数据库查询 sys.sysprocesses

For all databases query sys.sysprocesses

SELECT * FROM sys.sysprocesses WHERE open_tran = 1

对于当前数据库使用:

DBCC OPENTRAN

这篇关于有没有办法在 SQL Server 2000 数据库上列出打开的事务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆