• The last example clearly mentions that it will work only on SQL Server 2008 and above. Are you running the example on SQL Server 2005?

    .