DBA > Job Interview Questions > Sybase Interview Questions and Answers

How do I check if log truncation is blocked in S

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

(Continued from previous question...)

How do I check if log truncation is blocked in Sybase?

System 11 and beyond:
select h.spid, convert(varchar(20), h.name), h.starttime
from master..syslogshold h,
sysindexes i
where h.dbid = db_id()
and h.spid != 0
and i.id = 8 /* syslogs */
and h.page in (i.first, i.first+1) /* first page of log = page of oldest xact */

(Continued on next question...)

Other Job Interview Questions