Another solution similar to what Somakarpagamoorthy suggestes is this script wich you don't have to logout everyone, but first I would try to look in the SY00500 company table and update bchsttus and mkdtopst fields to 0 for this particular batch (UPDATE SY00500 SET MKDTOPST=0, BCHSTTUS=0 where BACHNUMB=’Batch ID’) , the other script I mention is: delete from DYNAMICS..ACTIVITY where USERID not in (select loginame from master..sysprocesses) delete from tempdb..DEX_SESSION where session_id not in (select SQLSESID from DYNAMICS..ACTIVITY) delete from tempdb..DEX_LOCK where session_id not in (select SQLSESID from DYNAMICS..ACTIVITY) delete from DYNAMICS..SY00800 where USERID not in (select USERID from DYNAMICS..ACTIVITY) delete from DYNAMICS..SY00801 where USERID not in (select USERID from DYNAMICS..ACTIVITY)
↧