久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

在 SQL Server 2005 中授予對 2 個表的只讀訪問權限的

best way to grant read only access to 2 tables in SQL Server 2005?(在 SQL Server 2005 中授予對 2 個表的只讀訪問權限的最佳方法?)
本文介紹了在 SQL Server 2005 中授予對 2 個表的只讀訪問權限的最佳方法?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

授予少數用戶訪問 SQL Server 2005 數據庫中幾個表的權限的最佳方法是什么?

whats the best way to grant access to a few users to a couple tables in a SQL Server 2005 database?

我知道文獻推動了視圖的使用,但與授予對實際表的只讀訪問權限相比有什么好處?

I know the literature pushes the use of views but what is the gain over granting read only access to the actual table?

至少對于表,開銷會更少,因為索引和其他限制已經到位并在表中進行管理(單點維護).如果我創建視圖,那么我是否不需要維護它們并為它們創建索引......而且這將是 SQL 本身的額外開銷?

at least with the table there will be less overhead in that the index and other restraints are already in place and managed at the table (a single point of maintenance). If I make views then won't i need to maintain them and create indexes on them... as well as this will be additional overhead for SQL itself?

推薦答案

CREATE ROLE role_name
GRANT SELECT ON table_name TO role_name

不要忘記將用戶添加到該角色.添加個人權限通常是一種不好的做法.

Don't forget to add users to that role. Adding individual permissions is generally a bad practice.

如果您想以不同方式隱藏特定列/名稱列/以其他方式過濾數據,則使用視圖并授予視圖權限非常有用.

Using views and giving permissions to the view is useful if you want to hide particular columns / name columns in different ways / otherwise filter the data.

這篇關于在 SQL Server 2005 中授予對 2 個表的只讀訪問權限的最佳方法?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

What SQL Server Datatype Should I Use To Store A Byte[](我應該使用什么 SQL Server 數據類型來存儲字節 [])
Interpreting type codes in sys.objects in SQL Server(解釋 SQL Server 中 sys.objects 中的類型代碼)
Typeorm .loadRelationCountAndMap returns zeros(Typeorm .loadRelationCountAndMap 返回零)
MS SQL: Should ISDATE() Return quot;1quot; when Cannot Cast as Date?(MS SQL:ISDATE() 是否應該返回“1?什么時候不能投射為日期?)
Converting the name of a day to its integer representation(將一天的名稱轉換為其整數表示)
How to convert nvarchar m/d/yy to mm/dd/yyyy in SQL Server?(如何在 SQL Server 中將 nvarchar m/d/yy 轉換為 mm/dd/yyyy?)
主站蜘蛛池模板: 日韩精品一区二 | 欧美一区二区三区在线视频 | 91免费视频 | 欧美另类视频在线 | 国产中文原创 | www.99热| 亚洲一区 | 国产精品久久久久久久模特 | 欧美日韩精品在线免费观看 | 黄色大片网 | 自拍 亚洲 欧美 老师 丝袜 | 久久久久久中文字幕 | 欧美操操操 | 色综合天天综合网国产成人网 | 在线观看av网站 | 看a网站| 欧美激情精品久久久久 | 国产成人精品免费视频 | 97avcc| 午夜影晥 | 亚洲精品一 | 亚洲精品免费在线观看 | 青青久久久 | 国产日韩欧美综合 | 乱一性一乱一交一视频a∨ 色爱av | 国产精品久久久久久久久久久久 | 成年人黄色免费视频 | 先锋资源亚洲 | 精品欧美乱码久久久久久1区2区 | 国产精品一区二区三区久久 | 欧美午夜影院 | 99久久婷婷 | 国产精品久久久久aaaa九色 | 日韩超碰在线 | 日韩精品中文字幕在线 | 欧美一区二区视频 | 国产乱码精品一区二区三区中文 | 免费在线成人网 | 国产一区精品 | 国产偷录视频叫床高潮对白 | 成人字幕网zmw |