Skip to content
Advertisement

IF when zero result from another Stored Procedure

I have a Stored Procedure which contains an Insert statement on it.

From the above Stored Procedure, I want to have a condition from result of another Stored Procedure. With the following action:

So, if cBranch is zero. Then execute Sp1 else do nothing.

Need advice please. Really appreciated.

Advertisement

Answer

Try This:

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement