biandinfosec
MIS
I am new to writing stored procedure. I have created 2 stored procedure which seems to run ok. Now I have the need to invoke either of these two based on another condition in the db table. I want to be able to do something like the below narative:
created sp's:
sp_1 and sp_2.
condition_1 = true, then call sp_1
condition_2 = true, then call sp_2
conditions_1 and _2 are both true , then call sp_1 and sp_2
I am using Adaptive server anywhere v6.4
Can someone give me an idea how to achieve this? I want to combine the 2 sp's into one sp that crystal report can call. crystal does not support calling more than 1 sp in a report.
Any help will be appreciated. Thanks.
created sp's:
sp_1 and sp_2.
condition_1 = true, then call sp_1
condition_2 = true, then call sp_2
conditions_1 and _2 are both true , then call sp_1 and sp_2
I am using Adaptive server anywhere v6.4
Can someone give me an idea how to achieve this? I want to combine the 2 sp's into one sp that crystal report can call. crystal does not support calling more than 1 sp in a report.
Any help will be appreciated. Thanks.