It's the end of the day and I've just discovered that a few of my stored procedures recompile every time they are used. It seems that this is due to the statement 'set dateformat dmy'.
I use this to ensure my stored procedure which uses dates works on both UK and US hosted databases. Does anyone know if I can set this anywhere else to get the same guarantee but without the recompile?