declare Cur_A cursor local forward_only static for   
      select A.Item,@Qty*A.RequireQty*(1+A.WasterRate/100) from BOM A   
        left join Item B on A.Item=B.ItemCode   
        where A.FatherItem=@ItemCode and B.RequireCode<>'A' and   
             (B.PlanCode='A' or B.ItemType='V') and  
             @ADate>=A.SetupDate and @ADate<=A.[ExpireDate] 
用具体参数值代替参数后可以查询,为什么@@fetch_status=-1 ????sql2000.是嵌套的的存储过程中的游标。