我知道这可行,但有人知道在一行代码中完成所有这些的方法:
EXEC @ResultInt = NameofAStoredProcedure
IF @ResultInt <> 0
RETURN @ResultInt
喜欢:
-- I'm trying something like this but it does not work we want to do it all in
-- one line to do a Find-Replace throughout our code base
IF (EXEC @ResultInt = NameofAStoredProcedure) <> 0 RETURN ResultInt