Uh,it's so hard to back to work from the vacation:-).Yesterday,for the first time, I have been faced the requirement to implement a column level permission on the table, have you done something before? A little script below demonstrates it.
USE dbname;
CREATE TABLE demo (c INT, c2 INT)
GRANT SELECT (c) ON demo TO test
EXECUTE AS USER = 'test';
SELECT * FROM fn_my_permissions('dbo.demo', 'OBJECT')
ORDER BY subentity_name, permission_name ;
REVERT
PS: subentity_name tells you on what column given permission.
Tuesday, June 8, 2010
Subscribe to:
Post Comments (Atom)
1 comment:
Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts.Any way Ill be subscribing to your feed and I hope you post again soon.
Our company provides Nike Shox Clearance rapid and safe, free shipping network marketing.
Post a Comment