I only know one way to do this. Your 2nd sp would need to so this:
1. create a temp table to hold the results of the 1st sp
2. run the 1st sp, putting the results into the temp table - you can use the syntax INSERT #temptable EXEC yoursp @param1, ...
3. run a query against the temp table to only return the customers you want.
rgds
Phil
|