应该没问题的,再检查一下Delete语句。

解决方案 »

  1.   

    CREATE PROCEDURE delid 
    AS
    begin tran
    delete table1 where 字段1 in (select 字段2 from table2)
    if @@error<>0 
      begin
      rollback tran
    -----  return
     end 
    else
    commit tran
    GO把return拿掉试试。
      

  2.   

    同意CrazyFor(Fan) 
    去掉 return 后测试通过
    数据库pubs  表1 authors 子段 au_id
                表2 sales   子段 stor_id