Est-il possible de filtrer le contenu d'une vue t-sql en fonction de SELECT GRANTS affecté aux rôles de base de données des utilisateurs finaux sans générer d'exceptions d'autorisations SELECT?Autorisations de rôle Filtré Afficher t-sql
Si oui, comment?
Pseudo:
CREATE TABLE Beer(a(x), b(y)); GRANT SELECT ON Beer to BeerOnlyRole;
CREATE TABLE Wine(a(x), b(y)); GRANT SELECT ON Wine to WineAndBeerRole;
GRANT SELECT ON Beer to WineAndBeerRole;
CREATE VIEW SimpleAlcoholSearch
(
SELECT a AS BrandName
,b AS Strength
FROM Beer
UNION
SELECT a AS BrandName
,b AS Strength
FROM Wine
)
GRANT SELECT ON SimpleAlcoholSearch to BeerOnlyRole;
GRANT SELECT ON SimpleAlcoholSearch to WineAndBeerRole;
....
AS BeerOnlyRole: SELECT * FROM SimpleAlcoholSearch: BEER1 1% 2% BEER2
AS WineAndBeerRole: SELECT * FROM SimpleAlcoholSearch : BEER1 1% BEER2 2% VIN1 10% Vin2 11%
Merci d'avoir lu cette ...