Sorry, I'm not following you. Could you maybe show the procedure and explain a bit more what it currently returns and what you want it to return?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability