Pregunta

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?

¿Fue útil?

Solución

Try this

ALTER DATABASE database_name 
SET COMPATIBILITY_LEVEL = 110 

here are details

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top