简体   繁体   English

如何禁用SQL Server 2008 R2数据库复制

[英]How to disable SQL Server 2008 R2 Database copying

I've SQL Database that I've to install to a client. 我有要安装到客户端的SQL数据库。 I really don't want my database tables and other components exposed. 我真的不希望暴露我的数据库表和其他组件。 The thing is that I've limited work experience on SQL Server 2008 R2 security setting. 问题是,我在SQL Server 2008 R2安全设置方面的工作经验有限。 Besides, is it possible to disable physical database copy from the folder where the database is located? 此外,是否可以从数据库所在的文件夹中禁用物理数据库复制?

Thank you in advance 先感谢您

You can run the SQL server under its own user (good practice for security anyway), and grant only that user permissions to the directory where the physical database is stored. 您可以在SQL Server自己的用户下运行SQL Server(无论如何都是为了安全性的良好做法),并且仅向该用户授予对物理数据库存储目录的权限。 This will prevent some other limited user from being able to copy the physical database files; 这将阻止其他一些受限用户复制物理数据库文件。 but will not stop administrators. 但不会停止管理员。

Administrative users have SeBackupPrivilege and SeTakeOwnershipPrivilege , so they can overwrite whatever permissions you may have set. 管理用户具有SeBackupPrivilegeSeTakeOwnershipPrivilege ,因此他们可以覆盖您可能设置的任何权限。

Of course, if the client has physical access to the machine, they effectively own the data on that machine; 当然,如果客户端可以物理访问该计算机,则他们实际上拥有该计算机上的数据。 there's nothing you can do about that. 您对此无能为力。 A good software security system starts with a good physical security system. 一个好的软件安全系统始于一个好的物理安全系统。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM