• This example has been tested on SQL Server 2012 and will not work on 2008 R2 or earlier

    Actually this script WILL work on sql server 2008 because THROW is not a statement here