Blogs

Replication Undelivered Commands: Monitoring and Reporting

Replication Undelivered Commands: Monitoring and Reporting

on June 7, 2009 • 7 min read

This post is to share a script I’ve been working on periodically over the last couple of months to monitor and report on replication latency at the distributor.

I use this in monitoring transactional replication with a stand-alone distributor.

Continue reading

Backups - Using SQL Agent Tokens to Set the Date, and Why to go MultiFile

Backups - Using SQL Agent Tokens to Set the Date, and Why to go MultiFile

By Kendra Little on June 2, 2009 • 2 min read

Category: backup-recovery

My life is a bit easier since I learned how to use SQL agent tokens. They are particularly nice for setting date and timestamps on backup files. Unfortunately, they only work in the context of executing agent jobs.

Continue reading

Management Studio 2008- What I Like

Management Studio 2008- What I Like

on June 1, 2009 • 1 min read

There’s some pretty cool things about SSMS 2008– I am really pleased that execution plans open graphically by default now, and it’s easy to view the XML on demand. I had gotten pretty fast at saving things as .sqlplan, but it was a bit of a drag.

Continue reading

Profiler: Deadlock Graph Event

Profiler: Deadlock Graph Event

on May 23, 2009 • 1 min read

Until recently I’d never used the deadlock graph event in Profiler. I’ve been pretty lucky and haven’t had to troubleshoot deadlocks much until now. The deadlock graph turns out to be quite nice!

Continue reading

Replication - Updates that Do Not Flow Through

Replication - Updates that Do Not Flow Through

on May 23, 2009 • 1 min read

This past week at work we found an instance where a replicated table (transactional push) was out of sync on the subscriber. In evaluating how to address the situation, we did some testing in pre-production and discovered the following (using profiler).

Continue reading

Finding Plans and Stats for Queries Based on Wildcard Text Matching

Finding Plans and Stats for Queries Based on Wildcard Text Matching

on May 16, 2009 • 2 min read

I often need to find a query plan in the cache for a process that has run long overnight. Typically I’ll be able to figure out from our logging some of the tables involved in the query. Sometimes I will have most of the executing text but won’t know exactly what dates or reference points were included.

Continue reading

A Script to Summarize Blocking

A Script to Summarize Blocking

on April 28, 2009 • 3 min read

Tags: blocking , spids

Update from Kendra (Nov 2018): I’m keeping this post for posterity, but I REALLY don’t recommend the script. You’d be much better off using a production monitoring tool that did this job, or @AdamMachanic ‘s sp_WhoIsActive.

Maybe you’re a user in a reporting database running a long query in the read committed isolation level, merrily blocking a process which needs to load data.

Continue reading