The new STRING_SPLIT method is not available in my Azure SQL database. I had already ran ALTER DATABASE [DatabaseName] SET COMPATIBILITY_LEVEL = 130 a couple days ago, and I have verified the compatibility level is indeed set to 130. SELECT database_id, name, compatibility_level FROM sys.databases
STRING_SPLIT
ALTER DATABASE [DatabaseName] SET COMPATIBILITY_LEVEL = 130
SELECT database_id, name, compatibility_level FROM sys.databases
Has anyone else been able to use the new method, and if so, did you need to do anything else to get it working?
It was a syntax error. I was attempting to use the function as scalar and not as table valued.
Correct Syntax: SELECT Value FROM STRING_SPLIT('Lorem ipsum dolor sit amet.', ' ');
SELECT Value FROM STRING_SPLIT('Lorem ipsum dolor sit amet.', ' ');
1.4m articles
1.4m replys
5 comments
57.0k users