The lack of mention of the Service Pack when querying @@Version might not be a bug from 2014, but one depending on the way it was installed.
My local installation of SQL Server 2012, won't show the SP, but the servers will.
However, the version number can be used to determine the SP installed.
How to post data/code on a forum to get the best help: Option 1 / Option 2
Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?