Tag Archive: Tools

Three Consulting Tools to Make You a Better DBA

As a consultant, I solve hard problems, and I use cool tools. These tools could help you, too– and in ways that may surprise you.

Problem 1: The DBA’s Time is Money, and It’s Limited

You know what, DBAs? You’re expensive.

DBAs are frequently involved in every task that touches a database. This includes Windows security patching, writing and running adhoc queries and reports for users, granting user access, deploying code, disaster recovery planning, high availability planning and implementation and performance troubleshooting. Additionally, DBAs must ensure that the database servers are configured in a secure way and that backup and maintenance processes are scheduled and running successfully.

Often, the tasks which are the most valuable to the business don’t get enough attention because of other demands.

The trick to managing your time— which is your company’s money— is to figure out where it’s going.

Consultant Solution: Manage Your Time with Toggl

If you aren't careful, others see you like this.

The problem with most time tracking tools is that they’re too time consuming. You start out and immediately realize you need to start tracking the time you’re spending tracking your time. You get caught in an endless loop and emerge 10 days later looking like a Unix sysadmin.

I love the Toggl interface because it’s seriously easy to use. You can very quickly record what you’re doing and classify it using a timer. You can continue activities from previous days or start new ones.

Typically, people in IT don’t do time tracking unless they’re forced to do so by management. It’s usually dreaded, but the secret is that the data is most valuable to YOU.

Track your time use for one month. At the end of the month, look at the patterns in aggregate. Look for items that took up a lot of time collectively, but which could be done by someone who is less expensive to your company, perhaps with some automation. Identify a more valuable project you could do instead, such as designing a Disaster Recovery plan for the company’s databases. Pitch this to your manager as extra value you can add, and provide the supporting data. Maybe it won’t work immediately, but over time you’re building data to help justify a Junior DBA.

Problem 2: People Don’t Know What the DBA Does

Most of your coworkers don’t understand what you do most of the time.

Solve this like a consultant. When you do a task for someone, give them a Statement of Work.

Consultant Solution: Statements of Work

A Statement of Work, or “SOW” is essentially an agreement that explains what you’re doing, what the goals are, and how much it will cost.

When you’re taking on a new project or task, make a bit of time to write up the goals for the project, how many hours of time each week you expect to devote to it, and how many weeks it will take you to complete. State what deliverables you will provide, an overview of the tasks you will do, and anything that might keep you from delivering on your estimate. This shouldn’t be lengthy or wordy— aim for clarity and brevity. Share your statement of work with your manager and the project owner.

Your statements of work can be sent by email, but store them off in a folder for your reference and review them when you complete a project. The main value you provide by writing this type of email as a DBA is helping others understand your job and see that you’re a professional.

Tip: I know you’ve got a list of things you would love to test, investigate, or research, but don’t have enough time. Once you get good at writing SOWs, you can use these to pitch projects that YOU think are valuable to your company. In exchange, you can trade off some of those time consuming tasks you tracked in Toggl that are a little too manual.

Problem 3: People Don’t See the DBA as a Person

Good news: with tools this good, you don't have to dress up.

There’s a problem that goes even deeper: Many people don’t see the extra hours you spend after a code deployment that caused the website to grind to a halt, or the late night hours you get paged because checkdb failed. Instead, they may see an empty cube in the morning if those late nights keep happening.

What people often notice about a DBA is that they aren’t in the office all the time. In many companies where there is 24×7 on-call support, the DBA may work a different schedule, come into the office less, and participate in more meetings remotely than others.

This is a huge tacit cause of friction, but you can avoid the problem.

Consultant Solution: The Webcam

Whenever I work with clients remotely, I’ve always got my webcam on. This means that no matter how long I’ve been working, I need to brush my hair, but it does something important: it helps people relate to me.

If you sometimes need to attend meetings from home, purchase a webcam, even if it’s on your own dime. Allow people to see that you’re actively paying attention to the meeting by positioning what you are working on near where the webcam is sitting— if you’re making notes on a secondary monitor, it might look like you’re ignoring the meeting.

By seeing you at work elsewhere, people will learn that you do accomplish things when you’re not at your desk. Moreover, they’ll see you much more as a person rather than a missing entity.

Being a Consultant is Fun

The true joy in being a consultant is solving problems. You can already do this as a DBA– without quitting your job! Sometimes all it takes to feel the difference is using a few new tools to help you manage your time, shape your role, and share your work with your colleagues.

Kendra Little

Kendra specializes in high availability and performance tuning. She is a Microsoft Certified Master in SQL Server-- the highest technical SQL Server Certification available. Kendra loves databases and software development more than long walks on the beach. Those cartoons in her blog posts? She draws 'em all. Read more and contact Kendra.

More Posts - Website

Follow Me:
TwitterFacebookLinkedInGoogle PlusYouTube

Three Things That Rock About SQL Server

When something remarkable is around for a while, it becomes easy to take it for granted.

Today, I’ll share three awesome things about SQL Server with tips to give you an edge when using each one.

#1. The Free Online Documentation is Mind Blowing

SQL Server is a huge product. We’ve got the database engine, Analysis Services for cubes, Integration Services to process and transform data, and an increasing set of other complex products for working with data documented in Books Online.

Tip: When using Books Online, check the Community Content at the bottom of the page first for any errors or questions others have raised— this can save you time and trouble if an important detail is missing or in error. Check other versions of the same page using the link at the head of the topic, and always read critically. Even encyclopedias can’t be perfect!

Microsoft’s documentation doesn’t stop with Books Online. Microsoft also publishes in-depth whitepapers for SQL Server. I recommend you periodically review the list to make sure you know what’s available, then set aside time to read the topics which are most useful to you.

We also have sites where community members publish high quality documentation for SQL Server. The SQL Server community is so vast that it’s impossible to mention them all. Three of my favorite sites for technical documentation are:

Tip:  When you see unusual behavior in SQL Server, search Microsoft Connect. This is where users report bugs and suggestions for the product. Make sure you log in to search: external search engines typically won’t lead you to what you need to find.

#2. Lots of Ways to Find Out “What’s Happening Now?”

We have many ways to check out what’s currently happening in SQL Server. The instrumentation for the product is very well developed and gives a lot of options to see what’s processing at any given time.

The top four ways I check to see what’s happening are by using:

  1. Dynamic Management Objects – We can find out an awful lot with queries— and more with each version of the product;
  2. SQL Trace – Our old friend, sometimes used with SQL Server Profiler;
  3. Extended Events – The new, leaner and meaner hotness for tracing: SQL 2008 and higher;
  4. Perfmon Counters – Windows and SQL Server specific counters.

Each of these techniques has its own strengths, and Extended Events is becoming increasingly powerful. Together, all of these methods provide a vast array of information about what’s happening in and around SQL Server.

Gathering data with each technique has its own cost. It takes experimenting and research to know what you can get away with and where you need to hold back.

Tip: When it comes to finding out what’s going on in production, treat your investigation like a database change. That means you should test your method against another environment, even if you can’t reproduce the issue there. Always think about how your method of investigating may be impacted by increased load, and make sure you have a way to monitor its impact.

#3. Tools, Tools, Tools

SQL Server ships with rich, user-friendly tools.

SQL Server Management Studio covers a lot of ground with different features. It helps us navigate a given installation and also develop Transact SQL. It has built-in reports to help describe what’s going on at instance and database levels.

It has sqlcmd mode if you prefer a different kind of scripting and want to interact more with Windows. You can use Object Explorer Details to select multiple items like Windows Explorer. We can view Graphical Execution Plans. Or, we can just run Transact SQL statements in multiple windows.

Tip: SSMS lets you choose to generate a script for almost every action you want to do rather than just executing it through the GUI. This feature is just plain awesome. Even if you choose to execute a change through the GUI, I recommend you always script out the command and save it off as a record of your change.

Want more SSMS tips? Check out Jes Schultz Borland’s blog post Tips and Tricks to Make SQL Server Management Studio Awesome.

What’s Cool About These Things Together

SQL Server may be complicated, but we have a lot of ways to work with it and to learn more about it.

As the SQL Server product grows, the tools and increasingly improved instrumentation allow us to understand the product more deeply. Books Online is just a launch board– the tools and the methods we have to see what’s going on in SQL Server help us take off from there.

Together with community members who want to share knowledge, this creates an interested, invested group of technologists who write about what they’re learning. And that’s something we really shouldn’t take for granted.

Kendra Little

Kendra specializes in high availability and performance tuning. She is a Microsoft Certified Master in SQL Server-- the highest technical SQL Server Certification available. Kendra loves databases and software development more than long walks on the beach. Those cartoons in her blog posts? She draws 'em all. Read more and contact Kendra.

More Posts - Website

Follow Me:
TwitterFacebookLinkedInGoogle PlusYouTube