如何获得FULL时自动创建SQLCE数据库 [英] How to auto create a SQLCE database when one gets FULL

查看:76
本文介绍了如何获得FULL时自动创建SQLCE数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好编码员!



我正在开发一个使用sqlce服务器的C#桌面应用程序。我需要在当前的数据库充满时自动创建新的数据库。



此应用程序将被广泛使用,因此将更快完成。



我打算打包一个带有完整表格结构的空白数据库,然后,每当数据库满了,我只想制作这个空白数据库的副本并用db1重命名它。 .db2 ... db3 ...名称。序列号(id)将递增并从前一个db继续。然后在使用应用程序时同时从所有这些dbs中检索数据。



我尝试过的事情:



我为此搜索了太多,但都徒劳无功。



请指导和帮助我....

解决方案

引用:

当一个人获得FULL时如何自动创建一个SQLCE数据库



简答:你没有。

如果您计划拥有一个大于4Gb限制的数据库,那么选择另一个没有限制的SQL服务器将是明智的选择。

即使可能,查询也会非常复杂和低效。


Hello coders!

I am developing a C# desktop application which uses sqlce server. I need to auto-create new databases automatically whenever the current one gets full.

This application will be used extensively and so will get full sooner.

I am planning to pack a blank database with complete tables structure and then, whenever a db gets full, I want to just make a copy of this blank db and rename it with db1...db2...db3... names. The serial no.(id) will be incremented and continued from the previous db. And then retrieve data from all these dbs simultaneously whenever the application is used.

What I have tried:

I have googled too much for this but all in vain.

Please guide and help me....

解决方案

Quote:

How to auto create a SQLCE database when one gets FULL


Short answer: You don't.
If you plan to have a database larger than the 4Gb limit, choosing another SQL server without the limit would be a wise choice.
Even if possible, the queries would be extremely complicated and inefficient.


这篇关于如何获得FULL时自动创建SQLCE数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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