2013-06-14 3 views
3

, 모든 것이 로컬로 실행할 때 기대 작품으로하지만 난 다음 오류 얻을 서버에 게시 할 때 :ASP.NET DATETIME2 문제는 내 ASP.NET 응용 프로그램에서

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

을 어떻게하면이 오류를 해결할 수 있습니다 ?

+0

는 http://stackoverflow.com/questions/10224406/the-version-of-sql-server-in-use-does-not-support-datatype-datetime2 –

답변

3
If you are using Entity Framework model in your project. 
Then open entity model in html or xml mode. and change ProviderManifestToken="2008" 
to ProviderManifestToken="2005". after that publish on server then check and let me know. 
+0

나는 그 일을 희망 .. –

+0

변경 후 게시, 그 덕분에, –

+1

사람 이름을 묻는 질문을 보니 좋은 "Sehta Umesh"이며 답변을주는 사람 이름은 "Umesh Sehta"입니다! –

1

이 기사에 따르면 SQL Server 2008+는 datetime2를 지원합니다. 귀하의 서버가 SQL 2008 이상을 실행하지는 않지만 귀하의 로컬 SQL Express는 실행된다고 가정합니다.

Difference between datetime and datetime2

관련 문제