Sybase lock table check and solution