Anonymous
Asked in
Cars &Transportation
·
2 weeks ago
How do I grant permissions to a SQL view?
For the existing view, you can go to the Properties of the view in SSMS, add users in the Permissions, and then grant select permission in the permissions list. Or use the following statement to grant user permissions: GRANT SELECT ON OBJECT::[schema]. [yourview] TO User1,User2. 9 июн. 2021 г.
How do I grant permission to create a view in SQL Server?
CREATE VIEW permissions1GRANT ALTER ON SCHEMA::Reporting TO [abc\BI Admins]2GRANT EXECUTE ON SCHEMA::Reporting TO [abc\BI Admins]3GRANT DELETE ON SCHEMA::Reporting TO [abc\BI Admins]4GRANT CREATE VIEW TO [abc\BI Admins]5GRANT CREATE FUNCTION TO [abc\BI Admins]
Can we use grant command on view?
Note: To grant privileges to all tables (or views) contained within a database, simply grant the privilege to the database. If the ALL [PRIVILEGES] keywords are specified following GRANT, all table or view privileges (for which the issuer has GRANT authority) are granted for the objects identified in the ON clause.
Related Questions
Relevance
-
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago
Write us your question, the answer will be received in 24 hours