I have a sql stored preocedure where I am trying to use the string_agg function. When I try to create the stored proc I get the error
Msg 195, Level 15, State 10, Procedure MamographyDaily, Line 18 [Batch Start Line 7] 'STRING_AGG' is not a recognized built-in function name.
I am running SQLserver 2016 with the SQL 2017 management studio