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
Sap dripping from a spout in a maple trunk into a hanging bucket, a full bucket set aside in the snow

Writing Agent Job Step Output to a Log File on Disk

June 21, 2022
Pinal Dave
SQL Tips and Tricks
DBA, SQL Log, SQL Server, SQL Server Agent

Preserve job step output in a server-side file, configure Agent tokens and append flags, and verify write permissions and retention.

Read More
Gouache painting of a guitar headstock with tuning pegs, one shifted peg vermilion

MySQL Configuration Changes: Track What Changed and When

June 14, 2022
Pinal Dave
SQL Tips and Tricks
Idera, MySQL, SQL Performance

MySQL configuration changes explain many sudden slowdowns. See how innodb_read_ahead_threshold works, what MySQL 8.0 records about a change and how to keep your own history.

Read More
A cafe umbrella stand full of identical black umbrellas, each handle tied with a different colored ribbon.

Tagging Queries With SESSION_CONTEXT to Trace App Users

June 9, 2022
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Connection, SQL Server, SQL Server 2016, SQL Server Security

Tag SQL Server work with SESSION_CONTEXT, read tags in audit defaults and modules, and handle read-only values and pooled connections.

Read More
Gouache painting of a small wooden dollhouse with a closed door and a ring of keys hanging from a vermilion hook

ALTER AUTHORIZATION on a Database: Find and Change the Owner

May 3, 2022
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server Security

ALTER AUTHORIZATION on a database changes its owner, and SUSER_SNAME(owner_sid) finds the current one. This post shows why a login that owns a database cannot be dropped and how to catch an orphaned owner.

Read More
Gouache painting of a large picnic basket of bread and green apples beside a small neatly packed basket with a vermilion handle

Compressed and Uncompressed Backup: One Script, One Switch

March 21, 2022
Pinal Dave
SQL Tips and Tricks
Compression, SQL Backup and Restore, SQL Scripts

A compressed and uncompressed backup differ by one word. This post puts COMPRESSION and NO_COMPRESSION in one script with a switch, compares size and time, and shows that the restore statement is the same for both.

Read More
A lone swimmer in a red cap still doing lengths in an almost empty evening pool

Agent Jobs Running Longer Than Usual: Finding Them in Job History

March 16, 2022
Pinal Dave
SQL Tips and Tricks
DBA, SQL Monitoring, SQL Server, SQL Server Agent

Find Agent jobs running longer than usual by decoding history durations, comparing current activity, and alerting against a baseline.

Read More
Gouache painting of apple trees in an orchard with red apples and a small vermilion peg in the ground beside a lamp post

Gaps in an Identity Column: Find Missing Identity Values

February 28, 2022
Pinal Dave
SQL Tips and Tricks
SQL Identity, SQL Scripts, SQL Server

Gaps in an identity column come from deletes, rollbacks, failed inserts and the identity cache. This post finds them as ranges with LEAD, catches the tail with IDENT_CURRENT and lists single values with GENERATE_SERIES.

Read More
Previous 1 … 18 19 20 21 22 23 24 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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