在其他PC上安装设置后如何保护db文件(.mdf) [英] How can secure db file (.mdf) after install setup in other pc

查看:109
本文介绍了在其他PC上安装设置后如何保护db文件(.mdf)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用vs2008,c#,sqlserver和.net窗口表单应用程序.
我已经创建安装程序并在一台PC中安装了.我想保护我的.mdf数据库文件.
我想知道如何保护.mdf db文件(例如隐藏文件)或尽可能提供密码.

安装安装程序后,其他人将无法访问此.mdf文件.
希望大家能理解我的问题.

帮助将不胜感激.
thnks
mukesh

Hi All,

I am using vs2008,c#,sqlserver and .net window form application.
I have create setup and install in one pc. i want to secure my .mdf db file.
I want to know that how can secure .mdf db file such as hide file or give password as possible.

this .mdf file should not accessible by another person after installing setup.
I hope all of you can understand my question.

help will be appreciated.......

thnks
mukesh

推荐答案

我将其放在用户程序数据区域中,看到您无论如何都应该这样做.我想,然后您可以在上面输入密码.但是,因为您的应用程序是C#,所以您使用的任何密码都可以使人们通过反射来查看代码.为什么要给人们一个不允许他们访问的数据库?
I would put it in the users program data area, seeing as you should do that anyhow. Then you can put a password on it, I thought. But as your app is C#, any password you use, people can see by using reflection to view your code. Why are you giving people a DB they are not allowed to access ?


这篇关于在其他PC上安装设置后如何保护db文件(.mdf)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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