DBA > Job Interview Questions > Sybase Interview Questions and Answers

How do I find the oldest open transaction in Syb

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

How do I find the oldest open transaction in Sybase?

select h.spid, u.name, p.cmd, h.name, h.starttime,
p.hostname, p.hostprocess, p.program_name
from master..syslogshold h,
master..sysprocesses p,
master..sysusers u
where h.spid = p.spid
and p.suid = u.suid
and h.spid != 0 /* not replication truncation point */

(Continued on next question...)

Other Job Interview Questions