Hi,@Chong
Welcome to Microsoft T-SQL Q&A Forum!
It looks more like a platform problem. I tested on 2019 and found no exceptions. This is not a compatibility issue. If it is not running on the server, it is recommended that you upgrade to the appropriate 2019 version.
SELECT compatibility_level FROM sys.databases WHERE name = 'mybase'
select @@VERSION
select * from STRING_SPLIT('2,2,2,2',',')
select * from string_split('2,2,2,2',',')
Best regards,
Bert Zhou
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.