Does SQL Server 2005 support datetime2

2019-08-09 04:04发布

I can't seem to find in the official documentation if SQL Server 2005 supports datetime2 data type?

3条回答
姐就是有狂的资本
2楼-- · 2019-08-09 04:43

maybe you encounter this problem:

The version of SQL Server in use does not support datatype 'datetime2

you can see the solution as following:

Using SQL Server 2008 and SQL Server 2005 and date time

查看更多
Deceive 欺骗
3楼-- · 2019-08-09 04:48

Open your EDMX in a file editor (or “open with…” in Visual Studio and select XML Editor). At the top you will find the storage model and it has an attribute ProviderManifestToken. This has should have the value 2008. Change that to 2005, recompile and everything works.

NOTE: You'll have to do this every time you update the model from database.

查看更多
爱情/是我丢掉的垃圾
4楼-- · 2019-08-09 04:55
登录 后发表回答