While preparing for the 70-451 exam I took a look at a stored procedure at a client's server that was performing poorly. This client is in the process of upgrading from SQL Server 2000 to SQL Server 2008 and they now also wanted to improve this stored procedure.