ahmd0
ahmd0

Reputation: 17293

Does SQL Server 2005 support datetime2

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

Upvotes: 2

Views: 7700

Answers (3)

m.benissa
m.benissa

Reputation: 661

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.

Upvotes: 1

MichAdel
MichAdel

Reputation: 747

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

Upvotes: 0

Related Questions