Blogs

Troubleshooting 1.00.001: sp_who2 and the SQL Server Log

Troubleshooting 1.00.001: sp_who2 and the SQL Server Log

on August 11, 2009

Update from Kendra (Nov 2018): I’m keeping this post for posterity, but instead of sp_who2, check out @AdamMachanic ’s sp_WhoIsActive, if you need a free tool to see what’s running in SQL Server.

I thought I would do a series of posts thinking through general troubleshooting steps I use for a wide variety of issues– everything from slow running performance, system crashes, or application failures where the source hasn’t been identified.

Continue reading

What Articles are being Replicated, and How Big are They?

What Articles are being Replicated, and How Big are They?

on August 11, 2009

I needed to quickly report on what articles are being replicated from a database yesterday. It was helpful to include the size of the articles, number of rows, and the subscriber information.

The system tables make this pretty quick work.

Continue reading

Average Daily Job Runtime

Average Daily Job Runtime

on June 20, 2009

Here’s a query I found useful today– this week we moved many of our production datamart servers to SQL 2K5 SP3 CU4, and today among the course of other issues I wanted to take a look at my job runtimes to see if they might be noticeably slower or faster than prior runs. I often am in a similar situation after deploying significant changes to our codebase.

Continue reading

Replication Undelivered Commands: Monitoring and Reporting

Replication Undelivered Commands: Monitoring and Reporting

on June 7, 2009

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

on June 2, 2009

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

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

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