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
A detached cabinet coupling remains separate from the key for reopening the protected second cabinet.

SQL SERVER – How to Break Mirroring?

August 27, 2021
Pinal Dave
SQL Tips and Tricks
SQL Mirroring, SQL Scripts, SQL Server

SET PARTNER OFF can break mirroring by permanently removing its relationship. I confirm the intended outcome before either command.

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
Gouache painting of a sunny courtyard with wooden stools holding saplings, the front stool vermilion

Index a Computed Column in SQL Server

August 20, 2021
Pinal Dave
SQL Performance
Computed Column, SQL Index, SQL Performance, SQL Scripts

To index a computed column, define the formula once on the table and create a normal index on it. This post loads 200,000 rows, shows the scan, then the seek after the index, and tests the rules that decide whether SQL Server accepts the column.

Read More
A silt core sampler showing a short retained column of layered sediment

Reading the Connectivity Ring Buffer for Dropped Connections

August 19, 2021
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server

The error log says nothing, but the connectivity ring buffer may remember. Here is how to read it and what it cannot tell you.

Read More
Previous 1 … 55 56 57 58 59 60 61 … 843 Next
  • Books
  • Testimonials
  • Privacy Policy

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