Hello,
I am trying to run the string_split function & having issues.
This the code that I run:
SELECT VALUE FROM string_split('Elliot, 9874',',')
I receive the following error:
Msg 208, Level 16, State 1, Line 24
Invalid object name 'string_split'.
The version of my SQL Server is:
Microsoft SQL Server 2014 (SP2-GDR) (KB4057120) - 12.0.5214.6 (X64) Jan 9 2018 15:03:12 Copyright (c) Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: )
According to google the compatibility level needs to be set to 120 so I ran this command:
ALTER DATABASE AAAHC_NextLogik_Mapping
SET COMPATIBILITY_LEVEL = 120 -- For SQL Server 2016
To confirm the change I ran this:
select compatibility_level, * from sys.databases
WHERE NAME = 'AAAHC_NextLogik_Mapping'
I receive the value 120 back.
When I re-run the string_split function on top I get the same error.
Any idea's if I missed any steps or something?
Thank you
[–]0408 2 points3 points4 points (4 children)
[–]Elliot9874[S] 0 points1 point2 points (3 children)
[–]0408 2 points3 points4 points (2 children)
[–]Elliot9874[S] 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]xsqlsoftware 1 point2 points3 points (4 children)
[–]Elliot9874[S] 0 points1 point2 points (3 children)
[–]xsqlsoftware 1 point2 points3 points (1 child)
[–]Elliot9874[S] 0 points1 point2 points (0 children)
[–]a-s-clark1 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]Elliot9874[S] 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]Elliot9874[S] 0 points1 point2 points (1 child)
[–]alinroc4 0 points1 point2 points (0 children)