Automating DBCC DBTABLE – Obtaining the Disk Sector Size

It’s a best practice to have the disk sector size (also known as the allocation unit size or block size) set to 64kb (see this white paper), so how can you get that info programmatically?

I was recently reading this msdn article on Ghost Records, and it mentioned that you could get the number of ghost […]

By |April 28th, 2015|SQL, SQL Group, SQL Server|2 Comments

SQL Consultant Braves Weather to Serve Client

Spring may be only weeks away, officially, but the weather is plenty chilly in North Dakota. And Fargo, North Dakota, is where Jared Kirkpatrick, our newest SQL consultant, finds himself this week.

People go to Fargo all the time. Don’t they? But for Jared, this trip has  involved some serious weather whiplash. When he departed his […]

By |March 5th, 2015|SQL Group, SQL Server|0 Comments

A Faster Way to Migrate SQL Server Instances!

I have had to migrate SQL Server instances many times over the years. Sometimes as part of an upgrade from one version to another, and other times just to move to new/bigger better hardware. In my current situation, the client wants to virtualize all of their SQL Server instances. Most of their database servers are already virtualized, […]

By |February 9th, 2015|SQL Group, SQL Server|3 Comments

Capture Index Maintenance Operations

One good database maintenance practice is to keep the indexes in good working order. This is typically done via index defragmentation routines. Some people perform routine index maintenance, some people do not, and still others have done some sort of “set it and forget it” script provided by a vendor and may or may not […]

By |January 21st, 2015|SQL, SQL Group, SQL Server|3 Comments

Moving Databases to New Drives: A Real-world Case Study Involving 120 Databases

Moving databases is a common enough task for the DBA, and there are multiple ways to move physical database files from one drive to another. Depending on your preference, you can either use the DETACH/ATTACH method:

 

Or you can use the ALTER DATABASE method:

Whichever method you prefer, these work great when you are moving databases, especially […]

By |July 29th, 2014|SQL Group, SQL Server|0 Comments

Missing Indexes Script v2

Frequently we hear the analogy that <insert item here> are like opinions, everybody has one and not all of them are good (some may stink).
Well, this may just be another one of those <items>.  Whether it stinks or not may depend on your mileage. It’s a missing indexes script.
I had shared a similar script back […]

By |June 15th, 2014|SQL Group, SQL Server|0 Comments

Utah Code Camp Spring 2012

This last Saturday was the most recent iteration of Utah Code Camp  and I have to say it was a resounding success.  In addition to speaking, I was invited to participate in an “Ask a DBA” panel discussion and also had the opportunity to have SQL Solutions Group sponsor the event.  So it was a […]

By |March 12th, 2012|SQL Group, SQL Server|0 Comments

Expired Passwords and the Oracle Provider

I ran into a problem a while back that caused me a lot of grief so I thought I’d post it here. The package in question was used to traverse hundreds of Oracle databases and run the same query on all of them. This data was then loaded into a data mart. The databases all […]

By |January 15th, 2011|SQL, SQL Group, SQL Server|1 Comment

EPM Framework Tips and Tricks

I just got done implementing the EPM Framework for a client and thought I’d post a few things here I learned along the way.  Nothing earthshattering but stuff worth noting.

SQL Server Version

The SQL Server 2008 instance serving as the EPM Framework hosting instance must be 2008 SP1 CU3 or higher. What is interesting about this […]

Converting a Hex value to an integer using the CLR

As an old-school DBA who has been around the block more times than I’d like to admit, I am always a bit slow to jump on the bandwagon with new features and technology.  I’m the guy that still doesn’t like the idea of virtualizing databases for example.  The CLR was no different when it came […]

By |November 4th, 2010|SQL Group, SQL Server|0 Comments