• I don't think MERGE statement is available in SQL Server 2005. Hope it should read SQL Server 2008.