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 spring catch holds one gate closed while a neighboring gate stays open

A Server Trigger That Blocks Accidental Database Drops

November 18, 2013
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Trigger

A server trigger can turn a wrong-tab DROP DATABASE into an error message. Here is a small demo that guards one name and removes itself at the end.

Read More
A bare evergreen tree beside an open box of saved ornaments, a red bauble on top.

Rebuilding System Databases With Setup When master Is Lost

November 2, 2013
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Server Installation, System Database

Plan rebuilding system databases with Setup when master has no usable backup, then restore logins, jobs, and configuration.

Read More
Allotment beds seen from above, one pumpkin vine with red pumpkins spreading across into the next bed

Measuring Space Used by Tables per Filegroup in T-SQL

October 31, 2013
Pinal Dave
SQL Tips and Tricks
DBA, SQL Data Storage, SQL Server, SQL System Table, Table Partitioning

Measure tables per filegroup from allocation metadata, include LOB and overflow pages, and separate partition placement from growth history.

Read More
A wooden seed cabinet in a shed with one drawer open, plain seed packets sorted in neat rows inside.

Keeping Your Own Script Library

October 27, 2013
Pinal Dave
SQL Tips and Tricks
Best Practices, DBA, SQL Documentation, SQL Scripts

A script library stays useful when folders, names, review history, and safe headers make each SQL file understandable before it runs.

Read More
Balloons tied to a garden bench in color groups, with one lone red balloon.

Counting Current Connections by Login, Host and Application

October 5, 2013
Pinal Dave
SQL Tips and Tricks
DBA, SQL Connection, SQL DMV, SQL Monitoring

Try counting current connections by login, host, application and database, then inspect sleeping transactions and save a baseline.

Read More
One hand passing a small red-handled peeler to another, while a full knife block stays untouched behind.

Granular Server Roles: ##MS_ServerStateReader## and Friends

September 23, 2013
Pinal Dave
SQL Tips and Tricks
DBA, SQL DMV, SQL Login, SQL Server 2022, SQL Server Security

Assign granular server roles in SQL Server 2022, inspect membership, and give monitoring accounts the state access their queries need.

Read More
A torch beam lighting fine scratches around a brass keyhole on a front door at night, a key on the mat

Auditing Failed Logins With the Error Log and Extended Events

September 15, 2013
Pinal Dave
SQL Tips and Tricks
DBA, SQL Audit, SQL Extended Events, SQL Login, SQL Server Security

Investigate failed logins with the SQL Server error log and a focused Extended Events session, then group attempts and decide what to do.

Read More
Previous 1 … 11 12 13 14 15 16 17 … 45 Next
  • Books
  • Testimonials
  • Privacy Policy

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