Hi @AnhDTC,
The STRING_SPLIT()
function got a 3rd parameter in SQL SERVER 2022, or Azure SQL Server.
I see two possible options here:
- Your on-prem. SQL Server is not SQL Server 2022.
- Your on-prem. SQL Server is SQL Server 2022, but its compatibility level below 160. In such case you can easily change compatibility level back to 160.