COLUMNPROPERTY in SQL Server 2016/2017

  • Evgeny Garaev

    SSCertifiable

    Points: 6734

    Comments posted to this topic are about the item COLUMNPROPERTY in SQL Server 2016/2017

  • Stewart "Arturius" Campbell

    SSC Guru

    Points: 71907

    Nice question, thanks Evgeny

    ____________________________________________
    Space, the final frontier? not any more...
    All limits henceforth are self-imposed.
    “libera tute vulgaris ex”

  • Shayn Thomas

    SSCertifiable

    Points: 5637

    Good Question, leading to some research,

    Thanks

    ---------------------------------------------------------------------------------------
    The more you know, the more you know that you dont know

  • david.gugg

    SSCertifiable

    Points: 5696

    I find it interesting that Microsoft docs say Column Sets start with SQL Server 2016, yet the ColumnProperty function works for IsColumnSet even back in SQL 2008 R2.


    [font="Tahoma"]Personal blog relating fishing to database administration:[/font]

    [font="Comic Sans MS"]https://davegugg.wordpress.com[/url]/[/font]

  • Evgeny Garaev

    SSCertifiable

    Points: 6734

    david.gugg - Thursday, October 11, 2018 6:58 AM

    I find it interesting that Microsoft docs say Column Sets start with SQL Server 2016, yet the ColumnProperty function works for IsColumnSet even back in SQL 2008 R2.

    The IsColumnSet was introduced way before the GeneratedAlwaysType. The question is about the GeneratedAlwaysType property.

  • Sue_H

    SSC Guru

    Points: 90745

    david.gugg - Thursday, October 11, 2018 6:58 AM

    I find it interesting that Microsoft docs say Column Sets start with SQL Server 2016, yet the ColumnProperty function works for IsColumnSet even back in SQL 2008 R2.

    That is weird. And if you change the drop down to view the 2014 documentation, it doesn't specify a version. But it's there. That happens with a lot of the SQL Server online documentation I've seen - where it erroneously states "Starting with SQL Servver 2016". So identifying versions when something was introduced isn't as easy as it used to be. It's inconsistent.

    This documentation about ColumnProperty is what the question is about though and it says starting with SQL Server 2008 with IsColumnSet and in the lists of values. It specifies GeneratedAlwaysType as starting with 2016:
    COLUMNPROPERTY (Transact-SQL)

    Sue

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply