create      procedure _IsTestingIceBoxSerial
@_strRoomLeftString char(20),
@_Address char(20),
@_IsSpec char(10) 
as
set @_strRoomLeftString=@_strRoomLeftString+'%'
if @_IsSpec='Prj'
select prj.IceBoxSerial,Prj.TestStandard,Prj.Address,IceModel,Project,EstradeNum from TaskBookPrj Prj,TaskBook where (Prj.State=1 or Prj.State=3) and Prj.EstradeNum Like @_strRoomLeftString and Prj.TestID=TaskBook.TestId and Prj.Address=TaskBook.Address and Prj.TestAddress=@_Address