SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


COLUMNPROPERTY in SQL Server 2016/2017


COLUMNPROPERTY in SQL Server 2016/2017

Author
Message
Evgeny Garaev
Evgeny Garaev
SSCertifiable
SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)

Group: General Forum Members
Points: 5135 Visits: 1560
Comments posted to this topic are about the item COLUMNPROPERTY in SQL Server 2016/2017
Stewart "Arturius" Campbell
Stewart "Arturius" Campbell
SSC Guru
SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)

Group: General Forum Members
Points: 61393 Visits: 8123
Nice question, thanks Evgeny

____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Shayn Thomas
Shayn Thomas
Hall of Fame
Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)

Group: General Forum Members
Points: 3669 Visits: 750
Good Question, leading to some research,

Thanks

---------------------------------------------------------------------------------------
The more you know, the more you know that you dont know
david.gugg
david.gugg
SSCarpal Tunnel
SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)

Group: General Forum Members
Points: 4662 Visits: 1295
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.


Personal blog relating fishing to database administration:

https://davegugg.wordpress.com/
Evgeny Garaev
Evgeny Garaev
SSCertifiable
SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)

Group: General Forum Members
Points: 5135 Visits: 1560
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
Sue_H
SSC Guru
SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)

Group: General Forum Members
Points: 72233 Visits: 14887
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



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search