Question : How to combine two sp

my problem is  I have two sp that I want to combine.. my first sp is about to see if customer eligible for rewards, and second sp is to Reward. I have already written both sp's but now changellece is the combine them in one and control them..  On cs code , when panel first opens up , I am going to execute the part I want for determining eligiblity, and when they click REward button than I want second part executed... how would I set up .... One thing to keep in mind, I do use temp tables in first part that I do need to use them in second part also...

Answer : How to combine two sp

>> it says invalid column name Reward.

It should work and not sure how you reference it in your SELECT statement.
Need to verify your code and Posting your actual code would help fix it faster...
Change your column and table names if required.
Random Solutions  
 
programming4us programming4us