SQL CE最大长度

编程入门 行业动态 更新时间:2024-10-28 11:27:08
本文介绍了SQL CE最大长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要存储的文章在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最大长度

本文发布于:2023-10-24 03:06:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1522761.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:长度   SQL   CE

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!