简体   繁体   中英

Is datetime2 support in MS SQL Server 2014 express

I'm a little confused on this. Microsoft seems to advocate the using of datatime2 instead of datetime. Datetime2 is smaller, and has better resolution and range, but when I go to design my database in SQL 2014 Express, datetime2 is not listed in the Data Type drop down. Datetime is listed but I actually need the resolution of datetime2. Is datetime2 not supported in express versions?

Thanks,

Karlsen was pretty much on the mark. I thought I was running in 2014 but when I checked Management Studio it turned out to be connected to a really old 2005 version. So the DB was in SQL 2005, where datetime2 was not supported. Thanks for pointing me in the right direction!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM