Clarifying version of SQL Server Management Studio and inability to use certain functions

Will Faulkner 201 Reputation points
2020-11-18T08:26:15.52+00:00

Hello

When I open Management Studio it tells me I'm in version 18.7.1

However when I tried to use the STRING_AGG function earlier in a query I got this error message:

'STRING_AGG' is not a recognized built-in function name.

I assumed that as I appeared to have MS 2018 functions like this would work.

However I then clicked on 'help' and 'about' and it says, under SQL Server Management Studio that I'm on:

15.0.18358.0

Please can you advise what upgrade I should be asking IT to move me onto in order to let me to actually use 2018?

Either that or am I doing something silly and obviously wrong and should be able to use the function (I used the correct syntax).

Thanks

SQL Server Other
0 comments No comments
{count} votes

Accepted answer
  1. Viorel 122.5K Reputation points
    2020-11-18T08:36:27.08+00:00

    I think that the availability of functions is determined by the version of SQL Server, not by Management Studio only.

    Try executing SELECT @@VERSION to check the version of SQL Server. Which value did you get?

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Cris Zhan-MSFT 6,661 Reputation points
    2020-11-19T06:29:44.227+00:00

    Hi WillFaulkner-2982,

    Happy to see you find the right direction.The aggregate function STRING_AGG applies to SQL Server 2017 (14.x) and later.

    Actually the SSMS 18.7.1 is the latest general availability (GA) version of SSMS.(18.7.1 is Release number, and 15.0.18358.0 is Build number)

    Best Regards,
    Cris

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.