SQL CE最大长度 [英] SQL CE Max Length

查看:172
本文介绍了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.

请参阅支持的类型列表中的的 http://msdn.microsoft.com/en-us/library/ms172424(SQL.110)的.aspx

See the list of supported types at http://msdn.microsoft.com/en-us/library/ms172424(SQL.110).aspx

这篇关于SQL CE最大长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆