SQL Server Blog

SQL Server articles, tips, and technical insights from the Kutech team.

Unable to begin a Distributed Transaction

This occured on a client's machine after they had migrated their SQL Server to new hardware with a fresh install of Windows Server 2008 R2. They attempted to use a linked server and received the following error message:

Read more

Blocking Chain

There are numerous variants of sp_who2 kicking around the internet and most of them go to absurd levels of intricacy.



For my situation, all I wanted was something that would show you a blocking chain and would also translate the SQL Server Agent Job name into plain English. That was all.

Read more

Agent History Cleanup - Distribution Transaction Log Full

A company I was visiting were having problems with the "Agent History Clean up" job that Microsoft installs as standard on a Distributor server. They had disabled the job because, as the job history showed, it was no longer completing as expected but was running forever and in doing so was causing the distribution database log file to rapidly increase in size until it Windows reported the disk as full. Once full they were having to kill the job, restart SQL Server (very risky as the job was now in rollback but couldn't comlpete due to disk space), truncate the transaction log, and then fix the backup chain for the sake of their disaster recovery requirements. This was clearly a huge problem for them as, without this job running, the distribution database would never stop increasing in size.

Read more

Merge Replication Records Stuck with genStatus4

This is an issue I’ve only seen a few times in our system, but when it does appear the effects are very noticeable indeed.



What I witnessed was that replication suddenly slowed down on a machine and the CPU started to rise to uncomfortable and unusual levels.

Read more

How to Move the Master Database in SQL Server 2008 R2

It's not a frequent occurence but times have arisen in which it's necessary to relocate the master database within your SQL Server. With SQL Server 2008 this is an incredibly simple operation and shouldn't cause you any problems.



This is surprisingly easy, in fact it’s a little too easy really.

Read more
An unhandled error has occurred. Reload 🗙