T-SQL & Development

DBA Candidates: Ask For A List of Servers

When interviewing for a database administrator position, ask the manager for a list of database servers, the applications that rely on them, and who to contact when the server goes down.

(The manager may express concern about the secure nature of the list, and that's fair - I would say the same thing.  If they don't want to hand over the list, then just ask them to put their hands on it and answer the rest of the questions for you.)

Read more about DBA Candidates: Ask For A List of Servers 4 comments — Join the discussion

SQL Server 2005 Setup Checklist Part 2: After The Install

I've covered what needs to happen before you install SQL Server - now, let's talk about what to do immediately after the setup finishes.
Install not just the service packs, but also the cumulative updates.
Starting with SQL Server 2005's Service Pack 2, Microsoft releases hotfixes in cumulative packs. These updates do more than just fix bugs: they improve how SQL Server performs. These updates are free performance benefits - and who doesn't like that?

Read more about SQL Server 2005 Setup Checklist Part 2: After The Install 98 comments — Join the discussion

Don’t specify IP’s in your SQL connection string

In today's SQL newsletter from SQL-Server-Performance.com I was horrified to find the following tip: When you specify a server in an ADO.NET connection string, use the server's IP address, not the server's DNS name. By using an IP address instead of a DNS name, name resolution does not have to occur, reducing the amount of…

Read more about Don’t specify IP’s in your SQL connection string 2 comments — Join the discussion
T-SQL & Development

What’s the Largest Database You’ve Worked With?

When hiring a production DBA, I start by asking them, "In terms of file size, what's the largest database you've worked with?" In a perfect world, we'd only hire very experienced candidates, people who've worked with larger databases than we're dealing with. In reality, though, we can't always afford those candidates - if they're even…

Read more about What’s the Largest Database You’ve Worked With? 12 comments — Join the discussion

Microsoft Technology Center: The DBA Experience

Our contacts at Microsoft offered us the services of a Microsoft Technology Center to do a two-week lab exercise on our data warehouse. We'd kept piling one application after another on our data warehouse SQL Server until the poor thing was plain out of maintenance windows and couldn't keep up, and we needed info from the pros to keep scaling it up.

Read more about Microsoft Technology Center: The DBA Experience 4 comments — Join the discussion
Production DBA

SQL Server Backup Software: Part 1 – Why Native SQL Backups Suck

Before we start looking at SQL Server backup compression software, we need to spend a few minutes looking at the weaknesses of the native SQL Server backup process. In order to judge the fixes, we have to know what's broken. Native SQL Server backups take the same disk space as the data. When we back…

Read more about SQL Server Backup Software: Part 1 – Why Native SQL Backups Suck 6 comments — Join the discussion

SQL Performance Tuning: Estimating Percentage Improvements

When I'm doing performance tuning on an application in the early stages of its lifecycle (or any app that's never had DBA attention before), I end up with a ton of recommendations within the first day of performance tuning.  The resulting to-do list can seem overwhelming to project managers and developers, so I include one of the following two sentences as a part of each recommendation:

Read more about SQL Performance Tuning: Estimating Percentage Improvements 1 comment — Join the discussion

Ugly month of outages

The past month has been a real challenge, filled with 70-80 hour weeks and clawing back from one disaster after another.

In late June, IBM recommended that we upgrade the firmware on our DS4800 SAN controllers to fix some problems. We obliged, and two days later, our Exchange cluster rebooted without warning. We'd been having some other problems with those servers anyway, so we didn't connect the dots. A few days later, the reboot happened again, and then again.

Read more about Ugly month of outages 9 comments — Join the discussion

SQL Server Perfmon (Performance Monitor) Best Practices

Database administrators need to know each SQL Server's weakest link so we know where to focus their hardware budgets and time. On any given server, we need to know what the slowest component is, and where it'll pay off to invest hours and dollars. This is performance tuning, and the first place to start is by using Performance Monitor.

Read more about SQL Server Perfmon (Performance Monitor) Best Practices Be the first to comment

DBA 101: The Always-On Workstation

DBAs need an in-office computer to run overnight and weekend performance logs, traces, and long-running queries. For example, let's say you need to run a long series of maintenance queries to rebuild indexes over the weekend. You shouldn't be remote-desktopping into your production servers to run this query: instead, you just need a simple workstation that you can leave logged-in, with the desktop locked, that runs the query.

Read more about DBA 101: The Always-On Workstation 2 comments — Join the discussion
Performance Tuning

SQL Server training for developers: primary keys & indexes

I had to do some developer training last week and I wrote up a paper on the basics of primary keys and indexes. Sure, there's tons of similar stuff around the net, but this is MINE, baby.
Our Table: Phone Numbers
For our evil training purposes, let's say we work for the phone company, and we need a database table with phone numbers. We need to track:

Read more about SQL Server training for developers: primary keys & indexes 8 comments — Join the discussion