Create Grant Statement for All Custom Views in Microsoft SQL
On a recent project, I needed to create a new database role for some new SQL views which had been created.
Creating the role is easy enough, but to make sure all the relevant views (and there were quite a few) looked like a bigger job until I realised I could select from sys.views
and generate the grant script at the same time.
In the below script, the first highlighted section is the database…
Continue Reading azurecurve’s Article on their blog
Create Grant Statement for All Custom Views in Microsoft SQL
On a recent project, I needed to create a new database role for some new SQL views which had been created. Creating the role is easy enough, but to make sure all the relevant views (and there were quite a few) looked like a bigger job until I realised I could select from and generate the grant script at the same time.
Blog Syndicated with azurecurve’s Permission
More About This Author
Array
- Dyn365GP1 May 2024In Microsoft Dynamics 365 Business Central (Administration), how do I… Understand the Approaches to Configuring a New Company
- Dyn365GP30 April 2024In Microsoft Dynamics 365 Business Central (Administration), how do I… Restore a Deleted Company
- Dyn365GP29 April 2024In Microsoft Dynamics 365 Business Central (Administration), how do I… Refresh an Environment
- Dyn365GP26 April 2024In Microsoft Dynamics 365 Business Central (Administration), how do I… Restore an Environment to a Point in Time