Hi,
Is it better to declare all variables at the top (even if some variables will not get used sometimes due to code execution case blocks) in a stored procedure? I think SQL Engine handles this better when "preparing" a sp.
This is for SQL2008. I also would need a "white paper" / genuine link for me to produce to the developers here at work.
Many thanks,
Bond Ridhoo.