Is rowversion not a valid data type in SQL Server 2008 R2?
Asked Answered
W

4

8

Is rowversion not a valid data type in Microsoft SQL Server 2008 R2?


Bonus Chatter

i'm trying to add a rowversion column to a table:

enter image description here

But when i try to leave the "Data Type" column, SQL Server Management Studio complains

Invalid data type.

enter image description here

and insists that i pick a different data type:

enter image description here

How do i make a column rowversion when rowversion is not a valid data type?


Bonus Viewing

enter image description here

Bonus Reading

rowversion (Transact-SQL)

timestamp is the synonym for the rowversion data type and is subject to the behavior of data type synonyms. In DDL statements, use rowversion instead of timestamp wherever possible. For more information, see Data Type Synonyms (Transact-SQL).

The timestamp syntax is deprecated. This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

Additional Bonus Chatter

Wyckoff answered 23/1, 2012 at 20:27 Comment(1)
I'm having this same issue in SSMS 2012. I do not see rowversion data type in the designer.Cabinet
O
5

SQL Server 2008 R2 accepts ROWVERSION as datatype for columns in CREATE TABLE statements, however the SSMS seems to lag behind and the designer refuses to accept the input.

Overlying answered 23/1, 2012 at 20:33 Comment(2)
You think you are wise, Mithrandir. Yet for all your subtleties, you have not wisdom. Do you think the eyes of Microsoft are blind? Also /facepalm at Microsoft (connect.microsoft.com/SQLServer/feedback/details/352733/…)Wyckoff
I know this is old but if anyone else comes here looking for an answer, however, I just wanted to leave a comment about what happens if you now go into the table via design view after creating it via TSQL statements.... The IDE will auto convert the column back to timestamp data type. No warnings no errors, just an auto convert.Halinahalite
A
5

If it's any help, the Visual Studio 2012 SQL Server Object Explorer designer does have the rowversion option (even though the VS 2012 Server Explorer Data Connections designer doesn't either).

enter image description here

Autorotation answered 29/10, 2013 at 15:54 Comment(0)
O
2

"The timestamp syntax is deprecated. This feature will be removed in a future version of Microsoft SQL Server. " so i think timestamp =rowversion .so you dont need rowversion.

Optometry answered 6/9, 2015 at 12:25 Comment(0)
C
0

In 2024, the SMSS v19 table designer STILL does not accept rowversion but wants timestamp instead. So, I guess MS plans to deprecate the timestamp syntax went on hold at some point.

Cellini answered 16/6, 2024 at 3:54 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.