This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
Gouache painting of a vegetable bed behind a picket fence with a vermilion padlock on the gate

Deny Drop Permission for a Table in SQL Server

September 6, 2021
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Security, SQL Trigger

To deny drop permission for a table, deny ALTER on its schema, because DENY DELETE only stops row deletes. This post tests both on a demo database and shows what each deny blocks and what it leaves open.

Read More
Drawer, construction-frame and entrance fittings show three distinct event scopes.

SQL SERVER – Types of Triggers

August 30, 2021
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Trigger

The types of triggers in SQL Server include DML, DDL and logon triggers. A customer requested this three-part summary.

Read More
Gouache painting of a large bolt standing in a nut with a small vermilion knob on top, and a wrench lying beside it

Trigger Blocks Index Maintenance: How to Let Rebuilds Pass

August 26, 2021
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server, SQL Trigger

A trigger blocks index maintenance when it guards every index event, because a rebuild is an index event too. This post shows the failure, then a trigger that reads EVENTDATA and lets rebuilds through while it still blocks create, drop and disable.

Read More
Unauthorized index modifications.

Prevent Unauthorized Index Modifications – SQL in Sixty Seconds #183

August 25, 2021
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Scripts, SQL Server, SQL Trigger

Many people asked me to create a video on the same topic, so we have Prevent Unauthorized Index Modifications. Here is the video.

Read More
Gouache painting of a toolbox with a clear lid and a vermilion padlock

Prevent Index Changes in SQL Server With a DDL Trigger

August 24, 2021
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL Server Security, SQL Trigger

To prevent index changes in one database, create a DDL trigger on the index events that rolls back the statement and says why. This post tests the trigger, shows what it blocks, and lists the index changes that slip past it.

Read More
A removable local doorway stop blocks a new shelf assembly from one specific work area.

SQL SERVER – Trigger on Database to Prevent Table Creation

August 23, 2021
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Trigger

A Trigger on Database scope can reject CREATE_TABLE events. A customer required this rule, though I preferred ordinary permissions.

Read More
Drawer, work-area and cabinet latches remain distinct beside one inspected fitting.

SQL SERVER – Enabling or Disabling Triggers with the Correct Scope

May 3, 2021
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Trigger

To disable all triggers correctly, I first identify the required scope. My original customer case concerned expensive table-trigger work.

Read More
1 2 3 4 … 8 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com