I would suggest doing as much as possible in SQL server, but I guess it's kind of a personal preference
By using SQL, you can schedule the jobs to run in off-hours and not have to rely on a PC to kick off the job (assuming your SQL server is always running/has better uptime than your PCs)
Also, I try to go by the rule that (generally) the fewer layers in an application, the better. Running the majority of your code on SQL means you have less network traffic, especially if some of your more in-depth functions need a lot of data to be calculated
If you need a more visualally appealing solution, you could try running most of the calculations in SQL, then writing the products to temporary tables, then have your Win/Web app pull only the final results from the temporary tables for formatting purposes.
|