My Azure DevOps CI build pipeline is configured to run on windows-latest build agent
pool:
vmImage: windows-latest
The SQLLocalDb version on window-latest build agents as stated here is v17
When I run the following as part of the yaml CI pipeline, it shows v15.0 (SQLServer 2019)
- script: |
sqllocaldb versions
sqllocaldb info
displayName: sqllocaldb versions on build VM
How do I get to install/upgrade to the latest version so that I can use the ordinal parameter that was introduced for string_split in SQL Server
Is SQllocalDb for SQLserver 2022 available, if so, how do I get it?
*** Could not deploy package.
Error SQL72014: Framework Microsoft SqlClient Data Provider: Msg 8144, Level 16, State 3, Procedure <procedure_name>, Line 42 Procedure or function STRING_SPLIT has too many arguments specified.
Error SQL72045: Script execution error.


Upon checking the SQL Server installation path
C:\Program Files\Microsoft SQL Server\on the Microsoft-hostedwindows-latestpipeline agent, there is only the sub folder of/LocalDB/Binnin150not160.To install SQllocalDb for SQL Server 2022, you may refer to the sample PowerShell script below running on the MS-hosted agent, which works for me.