简体   繁体   中英

Protect SQL Table to modify Data directly from Sql Management Studio

我有一个窗口应用程序,并且数据库(sql server)中有一些可以从应用程序更新的表。我需要将此数据库托管到客户端计算机上。如何保护我们的表直接修改。它是一个简单的sql包含一些数据的表格。请提供帮助。

You can use GRANT to remove the "unwanted" rights (eg UPDATE) from the user(s).

In general I would use database-level roles for that: introduce a special "read-only-role" and GRANT the needed rights (in your case only SELECT) to that role. Second create a kind of "writer-role" and do the same (eg with INSERT,UPDATE,DELETE). This is only an example - you should make clear what roles/user groups you need on database level and what rights these roles should have.

Try to keep it simple and give as few right s as possible to the users.

For further help - this article gives a nice introduction.

Please also have a look at the Identity and Access Control -section of the SQL Server 2008-R2 Technet documentation.

Hope that helped a bit. *Jost

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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