Make sure that the database compatibility level is 130 you can use the following query to change it: ALTER DATABASE [DatabaseName] SET COMPATIBILITY_LEVEL = 130 to Check the compatibility_level select * from sys.databases where name='DBName'