I'm pretty well skilled in plain SQL and the like, but I'm embarking on a more in depth project and my understanding of how/when to use store procedures and functions is 100% lacking... can anyone suggest a good resource for getting myself up to speed on these?