SQL Server 2000 stored procedure programming - Sunderic, Dejan (Database professional's library, 2001)