我需要存储的文章在WP7的应用程序。我只想用一个数据库,以便我可以通过未读文章查询,等等,等等。
I need to store articles in an application for WP7. I just want to use a database so I can query by unread articles, etc, etc.
我在Mango--碰到一个大问题,SQL CE那里似乎是4000个字符的限制,我的文章是4200而这甚至不是最大的一个。
I've run into one big problem with SQL CE in Mango-- there seems to be a limit of 4000 characters, and my article is 4200. And that isn't even the biggest one.
我如何解决这个限制,如果在所有?如果不是这样,我将不得不使用不同的数据库或者可能只是写故事IsolatedStorage和管理数据库的文件引用?
How can I get around this limit, if at all? If not, will I have to use a different database or possibly just write stories to IsolatedStorage and manage the file references in the database?
推荐答案4000字节限制强加给 VARCHAR 字段。
The 4000 byte limit is imposed on varchar fields.
如果您想了解更多,那么你就需要OT使用 NTEXT 。
If you want more then you'll need ot use ntext.
请参阅支持的类型列表中的的 msdn.microsoft/en-us/library/ms172424(SQL.110)的.aspx
See the list of supported types at msdn.microsoft/en-us/library/ms172424(SQL.110).aspx
更多推荐
SQL CE最大长度
发布评论