Hello, I study t-sql. I got to the section where the formatted date output is used. On one of the official Microsoft sites, the link describes how to use the FORMAT()
function.
Wrote this query:
DECLARE @d DATETIME = '10/01/2011'; SELECT FORMAT ( @d, 'd', 'en-US' ) AS 'US English Result';
But when executing this script, an error occurs:
"Message 195, level 15, state 10, line 2 FORMAT is not the name of the built-in function."
Tell me what could be the matter? I use MS SQL 2008R2, Windows7.