Schemas

Granting limited permissions to create views in another schema in SQL Server - Part 2

  • Article

In a previous tip, Granting limited permissions to create views in another schema in SQL Server, I showed how to use the CREATE VIEW permission and the ALTER SCHEMA permission to allow users to create new views using the same schema as the tables. However, I have found that the users can alter and drop tables in this schema which is beyond what I want them to do. A DENY CREATE TABLE does not work, so what can I do to prevent them from touching the tables in this way? In this tip I will show you how you can use a DDL trigger to prevent this unneeded access.

2009-08-17

3,444 reads

Using schema binding to improve SQL Server UDF performance

  • Article

SCHEMA BINDING is commonly used with SQL Server objects like views and User Defined Functions (UDF). The main benefit of SCHEMA BINDING is to avoid any accidental drop or change of an object that is referenced by other objects. A User Defined Function (UDF) may or may not access any underlying database objects, but in this tip we show how using SCHEMA BINDING with a UDF can improve performance even if there are no underlying objects.

2009-03-09

4,200 reads

Blogs

Which configuration changes in SQL Server require a restart?

By

SQL Server is a complex beast, with many configuration options that can range from...

Daily Coping 3 Mar 2021

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Disabling Non-Clustered Indexes For Fun and Profit

By

One of the frequently quoted ETL best practices is to disable your non-clustered indexes...

Read the latest Blogs

Forums

How to update table partwithcompany column name company id by companyid for max

By ahmed_elbarbary.2010

How to update table partwithcompany column name company id by companyid for max partid...

Appttime add with duration how to get endtime please

By DBA.k

  Hoe to get appt_time+duration = end_time can you please help on this

SQL Sever becoming Non Responsive

By IT researcher

SQL  server 2008 R2 - express edition becomes non-responsive, whenever connection count crosses 12000....

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers