SQL Server CE数据库的大小问题 [英] SQL Server CE database size issue

查看:1006
本文介绍了SQL Server CE数据库的大小问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从公司歇业申请。这似乎是使用SQL Server CE数据库。我已经搜查了系统,也找不到任何。自卫队文件。看来,该数据库已经长得太大。任何想法如何,我可以找到数据库并更改的最大尺寸是多少?

错误消息:

  

无法登录应用程序启动。    - System.Data.EntityCommandExecutionException:发生错误   而从存储提供的数据读取器读取。见内   例外的详细信息。 --->

     

System.Data.SqlServerCe.SqlCeException:数据库文件是较大   大于配置的最大数据库大小。该设置生效   第一个并发数据库连接上而已。 [最大需求   数据库大小(以MB为单位; 0,如果未知)= 257]

解决方案

您需要找到连接字符串,并添加:最大数据库大小= 1024

(最大为4000)

I have an application from a company that went out of business. It appears to use the SQL Server CE database. I have searched the system and can't find any .sdf files. It appears that the database has grown too big. Any idea how I can find the DB and change the maximum size?

ERROR message:

Unable to log application start. - System.Data.EntityCommandExecutionException: An error occurred while reading from the store provider's data reader. See the inner exception for details. --->

System.Data.SqlServerCe.SqlCeException: The database file is larger than the configured maximum database size. This setting takes effect on the first concurrent database connection only. [ Required Max Database Size (in MB; 0 if unknown) = 257 ]

解决方案

You need to locate the connection string and add: Max Database Size=1024

(Max is 4000)

这篇关于SQL Server CE数据库的大小问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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