NTEXT with more than 4000 characters in SQL Server CE in Windows Phone

前端 未结 2 1652
南笙
南笙 2021-01-03 12:06

NTEXT with more than 4000 characters in SQL Server CE in windows phone

I have a database in my windows phone app with a ntext field in one of the tables

2条回答
  •  北海茫月
    2021-01-03 12:30

    ntext supports over 500 million characters, so the problem you have has nothing to do with it. See http://msdn.microsoft.com/en-us/library/ms172424.aspx

    You might want to look at the following: http://msdn.microsoft.com/en-us/library/hh202872(v=vs.92).aspx

    The list doesn't mention ntext, but it does mention text. I'm going to guess that you might need to provide your own custom formatter.

    update

    Look at the following hotfix. It covers certain situations when using linq, ce and the ntext data type. Looks like without the fix, the formatter is forcing ntext to be a nvarchar(4000) under the hood. http://support.microsoft.com/kb/958478

提交回复
热议问题