Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 how do i get

Author  Topic 

nandac
Starting Member

27 Posts

Posted - 2008-12-03 : 09:41:44
1. transactions which have been running for over 15 minutes.
2. transactions which have been blocked by other transactions.

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-12-03 : 09:45:29
1. transactions which have been running for over 15 minutes.

SQL Profiler with Duration> 15min

2. transactions which have been blocked by other transactions.

sp_who2 active
activity monitor
sys.processes
Go to Top of Page

nandac
Starting Member

27 Posts

Posted - 2008-12-03 : 09:52:14
no, i need to get it from a system table or view.
Go to Top of Page

nandac
Starting Member

27 Posts

Posted - 2008-12-03 : 09:53:30
is it sys.processes or sysprocesses?
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-12-03 : 09:54:42
Do one thing:

Look at standard reports that comes with SQL 2005.They have all info.
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-12-03 : 09:55:18
quote:
Originally posted by nandac

is it sys.processes or sysprocesses?



oops!! its sys.sysprocesses in 2005.
Go to Top of Page

nandac
Starting Member

27 Posts

Posted - 2008-12-03 : 10:02:32
how/where can i see the standard reports?

and how do i get a label for a column?

for example : select db_name(dbid) from sys.sysprocesses

how can i get a title/lable for the dbname?
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-12-03 : 11:46:20
You can see in summary page for Reports. Look at Spid and find the statements with DBCC inputbuffer(spid).
Go to Top of Page
   

- Advertisement -