SQL 2012 THROW in SP That needs to be run on SQL 2005 and 2012
Please use a dynamic statement:


IF LEFT(@@VERSION, 25) LIKE ('%2012')
BEGIN
    EXEC sp_executesql N';THROW 50013,  @FullMessage , 1','@FullMessage nvarchar(1000)',@FullMessage=@FullErrorMessage
END
ELSE IF LEFT(@@VERSION, 25) LIKE ('%2005')
BEGIN
    RAISERROR(@FullErrorMessage, 11, 1)
END