1

I have executed the following query:

SELECT productid,
FORMAT(productid, 'd10') AS str_productid
FROM Production.Products;

I it is sayng that 'FORMAT' is not a recognized built-in function name. I am using the TSQL2012 database and Microsoft SQL Server 2012 Express. Can some one tell me what is wrong? The Express verssion has not included Format function?

thedarkside ofthemoon
  • 2,251
  • 6
  • 31
  • 48

1 Answers1

1

Try this

ALTER DATABASE database_name 
SET COMPATIBILITY_LEVEL = 110 

here are details

user1455836
  • 752
  • 6
  • 18