sqlskills-logo-2015-white.png

Building a Workstation for SQL Server 2012 Development and Testing

With the current crop of high-performance and very affordable desktop computer components, it is not very difficult to assemble an extremely high performance workstation for SQL Server 2012 development and testing at a very reasonable cost. Depending on how much of a purist you are and what your available budget is, you can take several different routes to get this accomplished.

At the high end of the spectrum, you can get a dual-socket, Socket 2011 motherboard, with two Intel Xeon E5-2600 series processors and a rather large quantity of ECC DDR3 RAM, and several data center-class SSDs, and spend a pretty significant amount of money.  At the lower end of the spectrum, you can put together a system with a single Intel Core i7-3770K processor, 32GB of non-ECC DDR3 RAM, and a single high-performance, 6Gbps consumer-class SSD, and have a system with more processing power than many existing Production database servers. It is really not difficult to to do!

If you are going to build a desktop system from scratch, you need eight basic components:

  1. Computer Case
  2. Power Supply
  3. Motherboard
  4. Processor
  5. Memory (RAM)
  6. Storage (Hard Drive or SSD)
  7. Optical Drive (becoming less important)
  8. Discrete Video Card (optional)

This assumes that you have a keyboard, mouse, and one or more monitors. I’ll discuss each one of these components, with some tips for what you should consider as you are choosing them.

Computer Case

You obviously need some sort of case to hold your components (unless you want to leave them running on a test bench). Personally, I like mid-range, mid-tower cases from companies like Antec, Cooler Master, and Corsair. Mid-Tower cases give you plenty of room for common ATX motherboards, and they usually have four to six internal 3.5” drive bays. Newer designs have special 2.5” drive bays for SSDs and front or top mounted USB 3.0 ports. Better cases are easier to work with, and they often have much better cable management features (so you can route most cables in a separate space under the motherboard). This not only looks much nicer, but it gives you better airflow inside the case. You probably don’t really need a fancy, gaming-oriented case with LED lighting and a huge number of case fans. A decent case in the $50-100 range will usually have good quality components (such as quieter, larger diameter case fans), along with good thermal and noise management features. The Antec Three Hundred Two is a good example of an affordable, good quality case for about $70.00.

Power Supply

You should invest in a decent quality power supply as opposed to the cheapest one you can find. You don’t want to go overboard and get a 1200 watt behemoth gaming-oriented power supply (unless you are building an extreme gaming rig with multiple, high-end video cards that really need that much power). For the kind of system that I am recommending, you can use a high quality 400-500 watt 80 PLUS modular power supply and have plenty of reserve power. Modular power supplies have detachable cables for things like SATA power, MOLEX power, PCI-E power, etc., so you only need to plug in and use the cables you actually need.

Power supplies are much less efficient when they are only supplying a very small portion of their rated output. Getting a 1200 watt power supply because you think it must be “better” than a good 500 watt power supply is actually a waste of money, both for the initial cost of your power supply and the electrical power costs over the life of your machine. The components that I am recommending will end up drawing about 35-50 watts at idle.  I really like Seasonic power supplies, especially their fan-less, modular models such as the SS400FL and the newer SS-520FL. They are both completely silent and highly efficient power supplies.

Motherboard

The motherboard is where all of your other components are plugged into, so it is a critical component. You need to consider which processor you are going to be using, since there are several different processor socket types available, which will dictate your motherboard choices. The most common type in early 2013 is the LGA 1155, which will work with both 2nd and 3rd generation Intel Core processors (Sandy Bridge and Ivy Bridge). You also need to consider the form-factor of your motherboard. You can choose from ATX, micro-ATX, and mini-ITX, which refers to the size of the motherboard. You also need to think about the chipset used on your motherboard.

The Intel Z77 chipset is their best chipset for the LGA 1155 motherboard. As you are looking at motherboards, you should be looking at the low-to-mid range Z77-based motherboards instead of the high-end, gaming motherboards. The high-end gaming Z77 motherboards can be quite expensive, and they will have features (such as support for three discrete video cards), that you don’t need for a SQL Server workstation or test server. Instead, make sure you choose a model that has four DDR3 RAM slots, and a model that has four 6Gbps SATA ports and four 6Gbps SATA ports. Some newer model motherboards also have an mSATA connector on the motherboard so you can use an mSATA SSD mounted directly on the motherboard itself. A good example is the Gigabyte GA-Z77X-D3H.

Processor

You can choose a modern, Intel desktop processor that may well have much more raw processing power than many older two or four-socket production database servers. This is not an exaggeration, although it depends on the age of your production database server. You are far more likely to run into memory or I/O bottlenecks as you push a modern Intel desktop system than processor bottlenecks. For most people, an Intel Core i7-3770K processor will be your best choice (especially if you live near a Micro Center). It is a quad-core processor with hyper-threading (so you have eight logical cores) that runs at a base clock speed of 3.5GHz, with the ability to TurboBoost to 3.9GHz. It runs very cool, and is easy to overclock with the stock Intel processor cooler. You can have a maximum of 32GB of DDR3 RAM with this processor.

Most 3rd generation Intel Core processors (ivy Bridge) have pretty decent integrated graphics built-in to the CPU package. The better models have HD4000 graphics which give you more than enough performance for normal desktop usage and even some moderate gaming. There was a pretty big improvement in the integrated graphics performance between the Sandy Bridge and Ivy Bridge processors, so it is much more feasible to simply use the integrated graphics instead of buying a separate, discrete video card. This will save you money and reduce your electrical power usage.

You can see the CPU-Z figures for a lightly over-clocked Intel Core i7-3770K processor in Figure 1 below.

image

Figure 1: CPU-Z of a Lightly Over-Clocked Intel Core i7-3770K

One big variable in the cost of using this processor is whether you live near a Micro Center computer store or not. Micro Center has 23 locations in the Continental United States, and they sell a few specific models of Intel processors at prices that no other company seems willing to match. They have been doing this for years, and it is their regular practice (so it is not a special sale or promotion). The only catch is that those processors are only available for in-store pickup (so no mail-order).

For example, Micro Center is currently selling the Intel Core i7-3770K processor for $229.99, while NewEgg is selling the exact same Intel Core i7-3770K processor for $329.99 (although they currently have a $20.00 promotion going). Micro Center quite often does promotions where they will reduce the price of a motherboard by $40-$50 if you buy the motherboard with a qualifying processor. Their prices on motherboards, cases, memory, hard drives and SSDs are also quite competitive.

Memory

If you select an LGA 1155, Z77 motherboard with four RAM slots, you can have up to 32GB of non-ECC DDR3 RAM in your system. You can get two 8GB sticks of 240-pin PC3 12800 DDR3 RAM for about $85.00, so it would be about $170.00 to get 32GB of RAM. This should be plenty for most development and testing workloads (including running multiple VMs), but if you really need more, you could make the jump to the LGA 2011 platform that uses the more expensive quad and six-core Intel Sandy Bridge-E processors where you can have 64GB of RAM. One thing you will want to do as you are configuring your system is to go into your BIOS setup and turn on Extreme Memory Profile (XMP), so that you will get better memory performance. This can occasionally cause stability problems, depending on the type of memory that you have, but if that happens, you can always turn it back off.

Storage

You will need some type of storage for your system. Traditional magnetic hard drive prices have finally gone down after the tragic flooding in Thailand back in late 2011, so that you can get a high-performance 2TB, 7200rpm SATA III drive with 64MB of cache, such as a 2TB Western Digital WD Black WD2002FAEX for $179.99. For just a little more money, you can also get a much smaller, but much much higher performance 6Gbps SATA III consumer-grade SSD, such as a 256GB OCZ Vector SSD for $239.99. Solid State Drive prices have come down a lot (as performance has increased dramatically) over the past couple of years, but they still cost about ten times as much as conventional magnetic storage.

I really encourage you to use a modern, fast 6Gbps SATA III SSD for your boot drive since it will have an extremely dramatic, positive effect on how fast your system performs and “feels” in everyday use. It will boot faster, shut down faster, programs will load nearly instantly, and it will take much less time to install new software and Windows Updates. It is similar to the difference between a dial-up modem and a fast broadband connection. Once you start using a fast SSD, you will never want to go back to a conventional magnetic hard drive.

You want to make sure your fast SSD is plugged into a 6Gbps SATA III port (not one of the 3Gbps SATA II ports). Otherwise, your fast SSD will be limited to about 300MB/sec for sequential reads and writes (which is still about twice as fast as a very fast traditional 7200rpm SATA hard drive). You also want to avoid the smallest capacity 64GB and 128GB SSD models, since their performance is much usually much lower than the larger capacity models from the same manufacturer and product line. This is because the smaller capacity models have fewer NAND chips and fewer data channels. Ideally, you would want a 256GB (or larger) 6Gbps SATA III SSD plugged into each SATA III port that you have available on your motherboard. This would give lots of options for how to lay out your SQL Server data files, log files, tempdb files and SQL Server backup files.

Of course, you may not want to spend that much money, so it is still common to have one or two SSDs, along with one or more conventional magnetic drives in a desktop system. One of the luxuries with a desktop system compared to any laptop is that you have a very high number of internal drive bays and up to eight SATA ports on the motherboard. You can also buy inexpensive PCI-E SATA III cards to add even more SATA III ports to a desktop system.

Optical Drive

Even though they are becoming less useful over time, I still like to have a DVD-Recorder, optical drive in a desktop system. It just makes it easier to install the operating system and other software (although you can certainly install from a USB drive). It is also becoming much more common to simply mount an .iso file for doing something like installing SQL Server 2012. You can get bare, OEM optical drives for about $20-25.

Discrete Video Card

There are some situations where the Ivy Bridge HD4000 integrated graphics might not be enough for your needs. An example would be if you were doing things such as AutoCad that really place a lot of stress on your graphics performance. Another example is if you wanted to run multiple, large monitors on your system. Most motherboards that support the Intel integrated graphics only have two or three video connectors (such as a VGA connector, DVI connector and an HDMI connector), so that would limit how many monitors you could connect to the system. If you do decide to go with one or more discrete video cards, you can get quite decent performance for about $100-150.00 each (but you can spend much more). You may also need a power supply with multiple, supplemental PCI-E power connectors, and you might even need a higher capacity power supply.

So, after all of this, how much money am I trying to convince you to spend?  Well, here is one example:

  1. Case                   $75.00
  2. Power Supply     $125.00
  3. Motherboard      $150.00
  4. Processor          $230.00          (Intel Core i7-3770K from Micro Center)
  5. RAM                  $170.00          (32GB of DDR3 RAM)
  6. Storage             $420.00          (One 256GB SSD and one 2TB 7200rpm drive)
  7. Optical drive         $25.00

Total System     $1195.00

This system would have much better performance than a laptop that would cost several times as much. It would also have better performance than many production SQL Server database servers. It would be pretty easy to slice over $500.00 off of this system cost by choosing some different components, and still have a very capable system.

Here is a second, lower cost example:

  1. Case                   $50.00
  2. Power Supply       $50.00
  3. Motherboard        $60.00          (Lower cost model, plus $40.00 Micro Center Processor Bundle discount)
  4. Processor           $190.00         (Intel Core i7-3570K from Micro Center)
  5. RAM                   $ 85.00          (16GB of DDR3 RAM)
  6. Storage              $210.00         (One 128GB SSD and one 1TB 7200rpm drive)
  7. Optical drive         $ 25.00

Total System         $670.00

This second system would still be quite powerful, although it would only be a quad-core processor (with no hyper-threading, so it would have about 70% of the processor capacity of the Core i7-3770K), have half the RAM, and half the storage space.

Of course, neither one of these systems has redundant, server-class components or ECC RAM, so you would not want to use them in a production situation.

This type of system is going to give you the best price/performance ratio until the upcoming 22nm Intel Haswell processors are released in June 2013. The Haswell is slated to use a different LGA 1150 socket, so you will have to get a different motherboard along with your Haswell CPU.

14 thoughts on “Building a Workstation for SQL Server 2012 Development and Testing

  1. Great article! I’m looking to do something very similar in the next couple of months. One question for you: is the extra speed from the i7-3770K worth forgoing VT-d and vPro extensions from the i7-3770? I figure it depends on whether you want to use the system for virtualization too, but seeing Hyper-V baked into Windows 8 may make desktop virtualization an interesting prospect when shopping for parts.

    Thanks again for the article!

  2. Thanks, Ian! The Core i7-3770K has a 3.5GHz base clock speed vs. a 3.4GHz base clock speed for the Core i7-3770, so the speed difference would be pretty neglible. The K is unlocked, so it is much easier to overclock. The K processors are supposed to be “higher binned” meaning that they will also take overclocking better.

    You are correct that the Core i7-3770K does not have VT-d, while the Core i7-3770 does have VT-d support. That will give better hardware support for I/O when you are using virtualization.

    Another factor to consider is that the Core i7-3770K is only $229.99 at Micro Center, while the Core i7-3770 is $259.99 at Micro Center. If you are going to use virtualization and you don’t really care about overclocking, the i7-3770 would probably be a better choice.

    1. I want to build such a configuration for SharePoint+SQL+Win8Phone development(virtual machines). I am confused with VT-d support. How important is this for virtualization?

      I do not want to end up with surprised results from coreinfo -v after purchase.

      Can you guide me decide on Motherboard/Processor that will support 32GB RAM with virtualization (on Win8Pro HyperV)

      1. VT-d support will give you better I/O performance from your virtual machines. How important that really is would depend on your workload. If you run your VMs from a fast SSD, that will make more difference than whether or not you have VT-d support or not. You can check the Intel ARK database for the processor that you choose to see whether it has VT-d support or not. The motherboard does not control that.

  3. Thanks for this Glenn. I’ve been wanting to piece together a powerful desktop system specifically for virtualization and SQL Server testing. Are there motherboards out there that support dual Intel i7 and can run 64 gb ram?

    1. Intel desktop processors (like the Core i7) are single processor only. You can get a Socket 2011, Core i7-38xx series processor and motherboard (Sandy Bridge-E) that will support 64GB of RAM. You could also get a dual-socket, Socket 2011 motherboard with two Intel Xeon E5-2600 series processors, and have a lot more than 64GB of RAM. That will be quite a bit more expensive…

  4. Excellent article. I live near two micro center stores! This article just helped persuade me to build another desktop. I have been using the caviar blacks for about two years now and can say that they are an excellent choice. This is going to be a fun build!

  5. I’m also gathering heart to build a dual socket box with E5-2643, 64 GB on a Asus Z9PE-D8 WS.
    In case I bet & buy stuff from the open market the cost is coming around $7k, while I got a quote from fujitsu thats going to $12k.
    For now I’m doing my home work for in case I’ve not missed anything.

  6. Hi, great article but I am even more confused now (but I am reading all day already…) Can you please let me know how many cores I have in total for this intel i7 3770 CPU? I want to run either Micorsoft SQL server 2008 or 2012 on this machine and their licensing model (2012) is based on cores.

    And maybe you can help me with this as well: should I install the 2008 Standard or the 2012 Standard? I just want to run one DB and I need to overcome the Express restriction of 10GB. That is the only reason why I am considering the upgrade.

    Thanks
    Kai

    1. I am a little confused about what your question is. If you are just doing non-production, development and test work on the machine, you should use SQL Server 2012 Developer Edition. If the machine is being used for Production, then you would need SQL Server 2012 Standard Edition. I would not recommend that you use a desktop machine for production SQL Server usage, though.

Leave a Reply

Your email address will not be published. Required fields are marked *

Other articles

Imagine feeling confident enough to handle whatever your database throws at you.

With training and consulting from SQLskills, you’ll be able to solve big problems, elevate your team’s capacity, and take control of your data career.