>>I separate business logic from the stored procedures. I consider stored procedures my data access layer, and consider my web service as business logic layer. I rarely make my application directly access a table or query. > >Makes sense. I too would like to separate the business logic from the data access layer. So far I don't have a clear picture in my head on how to do it, for this particular routine. But I am working/thinking of how to get there.