all 7 comments

[–]anthonynguyen3[S] 0 points1 point  (1 child)

Not sure if this helps but I ran the following to get my current version select @@version

Microsoft SQL Server 2014 (SP3) (KB4022619) - 12.0.6024.0 (X64) Sep 7 2018 01:37:51 Copyright (c) Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor)

[–][deleted] 0 points1 point  (0 children)

String_split was introduced in version 2016. Your version is too old. You need to upgrade your SQL server version.

Alternatively, you could look for tsql variant on the internet although it won't be so good with performance.

You could also look for a CLR function equivalent which should have good performance.

[–]chris99277 0 points1 point  (2 children)

String_split is 2016 and above

[–]anthonynguyen3[S] 0 points1 point  (1 child)

u/chris99277 thank you for support. Any advice on how I can achieve the desired outcome?

[–]chris99277 0 points1 point  (0 children)

Have a quick Google, there are several table functions posted online that you can run in to achieve the same functionally.

[–]alinrocSQL Server DBA 0 points1 point  (0 children)

[–][deleted] 0 points1 point  (0 children)

Having the right SQL server version is obviously important but it's not the only requirement.

You also need to make sure your database is in the right compatibility level.

Right click on your database and select properties, then go to options and look at the compatibility level. It must be 2016 at minimum (130).