开发者

tsql permission

开发者 https://www.devze.com 2023-03-12 22:57 出处:网络
I need to configure restricted permissions on sql server 2008 to a specified user as following : read from tables

I need to configure restricted permissions on sql server 2008 to a specified user as following :

The given user must not be able to drop tables, functions, sps.


Read from all tables -> Assign db_datareader role

Write into all tables -> Assign db_datawriter role

Read permission on a few tables

Grant Select To <Username> on <tablename>

Create view

GRANT CREATE VIEW TO <Username>;

To Delete View you should explicitly give viewname like

GRANT Delete VIEW TO <Username> On <TableName>

If you want some details on this you should read through : This microsoft documentation

0

精彩评论

暂无评论...
验证码 换一张
取 消