有关应在桌面应用程序中隐藏的数据库的问题. [英] Question about database which should be hidden in desktop application.

查看:156
本文介绍了有关应在桌面应用程序中隐藏的数据库的问题.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发1个应用程序,其中我必须使用预加载的数据库.它将永远不会被用户更新.这意味着一次插入的数据仅用于获取或读取目的.所以我不想使用任何数据库,如sql server或access.我想在我的应用程序中使用集成的东西.有人可以建议我可以在我的应用程序中使用的文件吗?该文件在任何地方都不应该可见.诸如我们内部使用Crystal Report的方式.我想要这样.

I am developing 1 application in which i will have to use pre-loaded database. Which will never be updated by user. That means data inserted once in it are used just for fetching or reading purpose. So I dont want to use any database like sql server or access. I want to use something integrated in my application. Can anybody please suggest what file I can use here in my application. And that file should not be visible any where. Some thing like how we are using crystal report internally. I want exactly like that.

推荐答案

您只有几个实际选择:
1.使用限制为只读的帐户使用ado.net连接.
2.使用报告工具. Crystal Reports与SQL Reporting集成在一起.我认为这两种方法都需要额外的钱.
You only have a couple of real options:
1. Use an ado.net connection using a account restricted to read-only.
2. Use a reporting tool. Crystal Reports integrates, as does SQL Reporting. Both cost extra money I think.


如果您的只读数据库小于4GB,则可以使用SQL Compact版本.尽管数据库文件是可见的(您只能使用rootkit隐藏文件,这对用户无礼). SQLCE直接在您的进程中运行,并且数据库文件的内容使用您提供的密码进行加密(将密码硬编码到您的应用程序中).这可能与您要达到的目标非常接近.
If your read only database is under 4GB you could use SQL Compact edition. although the database file would be visible (you can only hide files with a rootkit, and that is rude to your users). SQLCE runs directly in your process, and the contents of the database file are encrypted using the password you provide (which would be hard-coded into your application). That is probably as close as you are going to get to what you want.


这篇关于有关应在桌面应用程序中隐藏的数据库的问题.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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