Breaking Down TempDB Contention (part 2) I wrote a somewhat popular script and blog post a while back called Breaking Down TempDB Contention. This post explains how to identify tempdb contention. This past Friday, Jonathan Kehayias (blog|@SQLPoolboy) contacted me about the script. Jonathan said that he thought the math was off just a little bit…
Continue Reading »

Loading ...
Including Missing Values in Data Ranges Without a Lookup Table One of the ways that I learn new things is by helping others with their issues or questions. In my career, this has served me well by exposing me to a vast array of experiences that I may not have otherwise seen. I try to…
Continue Reading »

Loading ...
Using Dynamic Values in XMLA A question was raised on Twitter today via the #sqlhelp hash tag about passing parameter values to XMLA for a backup script. The popular answer at the time I saw it was to dynamiclly create and drop a SQL job to run the script every time you need it to…
Continue Reading »

Loading ...
T-SQL Tuesday #21 – Bringing Ugly Back This blog entry is participating in T-SQL Tuesday #21, hosted this month by Adam Machanic (Blog|@AdamMachanic). You are invited to visit his blog to join the blog party. You are welcome to write your own participating blog post for the party or just to read more blogs participating…
Continue Reading »

Loading ...
Meme Monday: SQL Horoscope: Finding Your Chinese Zodiac It’s time for July’s Meme Monday post, and this month’s topic is SQL Horoscopes. I read Jen McCown’s post, Meme Monday SQLstrology – Table Valued Zodiac Function, and it inspired me to write a simple function for finding the Chinese Zodiac animal for any given year. There…
Continue Reading »

Loading ...
Secrets of SQL Server Webcast: TempDB: Performance and Manageability Register today for my Secrets of SQL Server webcast on July 13th. TempDB: Performance and Manageability Misconceptions and inconsistent advice on tempDB abounds. Even highly skilled DBAs cannot always agree on how to best configure tempDB. Part of the problem is that there is no single…
Continue Reading »

Loading ...
The Power of Inequality Inequality can be a cool thing in SQL Server. You can do some cool tricks with it as well. Have you ever needed to create an exact copy of a table programmatically (yes, I’m talking about SELECT … INTO) without inserting any data into it? You can do it through the…
Continue Reading »

Loading ...
T-SQL Tuesday #18 – Using CTEs to Pivot Data Into Date Ranges This blog entry is participating in T-SQL Tuesday #18, hosted this month by Bob Pusateri (Blog|@SQLBob). You are invited to visit his blog to join the blog party. You are welcome to write your own participating blog post for the party or just…
Continue Reading »

Loading ...
The Truth About NOLOCK Hints There was a post this week from a well-known blogger who was investigating the NOLOCK locking hint. He says that he was asked whether a query using NOLOCK hint takes locks or not. After he responded that NOLOCK does not take any locks, the person who posed the question suggested…
Continue Reading »

Loading ...
Counting Unreplicated Commands and Transactions Someone asked me a question via Twitter today that I couldn’t possible answer 40 characters at a time. The question was about how to get the count of unreplicated transactions and commands from teh distribution server without using system views. Well, I do use one system view, but only because…
Continue Reading »

Loading ...