View Single Post
Old May 14, 2008 | 02:29 PM
  #7  
Chip's Avatar
Chip
*** Sierra RS Custard ***
iTrader: (3)
 
Joined: Dec 2006
Posts: 47,250
Likes: 22
Default

doing it in the code itself, in the environment i work in normally, would mean moving all the data into memory on the machine where the code executes, rather than manipulating it on the DB server where it already is, so for that reason id use a stored procedure

Anyway, in this particular instance its just for a report, so only needs to be run directly in SQL anyway, so without a doubt is the best way of doing so.
Reply