如何保护sql server 2005 MDF文件
如何设置 sql server 2005 MDF 文件的密码。
因为我想将跟踪包提供给客户,包中包括 MDF。
安装包后,MDF将被放置在C盘,用户数据将通过应用程序存储在MDF文件中。 但不允许在该系统中使用 sql server 附加该 MDF 文件。
How to set the Password for sql server 2005 MDF file.
Becoz i want to give the trail package to the client,package including the MDF.
After installing the package, the MDF will be placed in C drive, user data will store in MDF file through the application. but not allow to attach that MDF file using sql server in that system.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果某人是实例的系统管理员,则无论您做什么,都可以附加 mdf。 如果您想保护数据免受系统管理员的攻击,可以使用一些技巧,但相当困难。
如果您想阻止大多数人(数据库所有者和系统管理员除外)连接到数据库,请实施基于角色的安全性,您可以在其中定义角色可以和不能对数据库中的数据执行哪些操作。 您还可以查看应用程序角色,它们可能对您有用。
If someone is sysadmin of an instance, one will be able to attach the mdf regardless of what you do. If you want to protect data from sysadmin, there are some tricks possible but it is rather hard.
If you want to prevent most of the people (with exception of owner of database and sysadmin) from connection to database, implement role based security, where you can define what roles can and cannot do with data in database. You can also look at application roles, they may be useful for you.
您可以使用 EncryptByPassPhrase。
请参阅利用 SQL Server 2005 中的高级安全功能阻止坏人< /a>
透明数据加密仅在 SQL Server 2008 中引入:
You can encrypt data held in a column using EncryptByPassPhrase.
See Keep Bad Guys at Bay with the Advanced Security Features in SQL Server 2005
Transparent Data Encyption was only introduced in SQL Server 2008: