SQL Server - Seguridad a nivel de filas

 
Vista:

Seguridad a nivel de filas

Publicado por Anita (14 intervenciones) el 14/12/2007 16:16:57
Hola estoy tratando de implementar seguridad a nivel de filas en SQL Server segun el articulo "Implementing Row and Cell Level Security " del site de Microsoft. Todo me corre perfecto, sin embargo, lo unico que no funciona es la jerarquia establecida en la tabla tblMarkingHierarchy en la que se define cuales markings estan por encima de otros y de esa manera poder tambien accesar a sus datos. Que falta? Por favor remitirse a: http://www.microsoft.com/technet/prodtechnol/sql/2005/multisec.mspx

CREATE VIEW vwVisibleLabels
AS

SELECT ID, Label.ToString()
FROM tblUniqueLabel WITH (NOLOCK)
WHERE
ID IN --Classification
(SELECT ID FROM tblUniqueLabelMarking WITH (NOLOCK)
WHERE CategoryID = 1 AND IS_MEMBER(MarkingRoleName) = 1)
AND --Compartments
1 = ALL(SELECT IS_MEMBER(MarkingRoleName) FROM tblUniqueLabelMarking
WHERE CategoryID = 2 AND UniqueLabelID = tblUniqueLabel.ID)
GO

Muchas gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder