- SQL Server Reference Guide
- Introduction
- SQL Server Reference Guide Overview
- Table of Contents
- Microsoft SQL Server Defined
- SQL Server Editions
- SQL Server Access
- Informit Articles and Sample Chapters
- Online Resources
- Microsoft SQL Server Features
- SQL Server Books Online
- Clustering Services
- Data Transformation Services (DTS) Overview
- Replication Services
- Database Mirroring
- Natural Language Processing (NLP)
- Analysis Services
- Microsot SQL Server Reporting Services
- XML Overview
- Notification Services for the DBA
- Full-Text Search
- SQL Server 2005 - Service Broker
- Using SQL Server as a Web Service
- SQL Server Encryption Options Overview
- SQL Server 2008 Overview
- SQL Server 2008 R2 Overview
- SQL Azure
- The Utility Control Point and Data Application Component, Part 1
- The Utility Control Point and Data Application Component, Part 2
- Microsoft SQL Server Administration
- The DBA Survival Guide: The 10 Minute SQL Server Overview
- Preparing (or Tuning) a Windows System for SQL Server, Part 1
- Preparing (or Tuning) a Windows System for SQL Server, Part 2
- Installing SQL Server
- Upgrading SQL Server
- SQL Server 2000 Management Tools
- SQL Server 2005 Management Tools
- SQL Server 2008 Management Tools
- SQL Azure Tools
- Automating Tasks with SQL Server Agent
- Run Operating System Commands in SQL Agent using PowerShell
- Automating Tasks Without SQL Server Agent
- Storage – SQL Server I/O
- Service Packs, Hotfixes and Cumulative Upgrades
- Tracking SQL Server Information with Error and Event Logs
- Change Management
- SQL Server Metadata, Part One
- SQL Server Meta-Data, Part Two
- Monitoring - SQL Server 2005 Dynamic Views and Functions
- Monitoring - Performance Monitor
- Unattended Performance Monitoring for SQL Server
- Monitoring - User-Defined Performance Counters
- Monitoring: SQL Server Activity Monitor
- SQL Server Instances
- DBCC Commands
- SQL Server and Mail
- Database Maintenance Checklist
- The Maintenance Wizard: SQL Server 2000 and Earlier
- The Maintenance Wizard: SQL Server 2005 (SP2) and Later
- The Web Assistant Wizard
- Creating Web Pages from SQL Server
- SQL Server Security
- Securing the SQL Server Platform, Part 1
- Securing the SQL Server Platform, Part 2
- SQL Server Security: Users and other Principals
- SQL Server Security – Roles
- SQL Server Security: Objects (Securables)
- Security: Using the Command Line
- SQL Server Security - Encrypting Connections
- SQL Server Security: Encrypting Data
- SQL Server Security Audit
- High Availability - SQL Server Clustering
- SQL Server Configuration, Part 1
- SQL Server Configuration, Part 2
- Database Configuration Options
- 32- vs 64-bit Computing for SQL Server
- SQL Server and Memory
- Performance Tuning: Introduction to Indexes
- Statistical Indexes
- Backup and Recovery
- Backup and Recovery Examples, Part One
- Backup and Recovery Examples, Part Two: Transferring Databases to Another System (Even Without Backups)
- SQL Profiler - Reverse Engineering An Application
- SQL Trace
- SQL Server Alerts
- Files and Filegroups
- Partitioning
- Full-Text Indexes
- Read-Only Data
- SQL Server Locks
- Monitoring Locking and Deadlocking
- Controlling Locks in SQL Server
- SQL Server Policy-Based Management, Part One
- SQL Server Policy-Based Management, Part Two
- SQL Server Policy-Based Management, Part Three
- Microsoft SQL Server Programming
- An Outline for Development
- Database
- Database Services
- Database Objects: Databases
- Database Objects: Tables
- Database Objects: Table Relationships
- Database Objects: Keys
- Database Objects: Constraints
- Database Objects: Data Types
- Database Objects: Views
- Database Objects: Stored Procedures
- Database Objects: Indexes
- Database Objects: User Defined Functions
- Database Objects: Triggers
- Database Design: Requirements, Entities, and Attributes
- Business Process Model Notation (BPMN) and the Data Professional
- Business Questions for Database Design, Part One
- Business Questions for Database Design, Part Two
- Database Design: Finalizing Requirements and Defining Relationships
- Database Design: Creating an Entity Relationship Diagram
- Database Design: The Logical ERD
- Database Design: Adjusting The Model
- Database Design: Normalizing the Model
- Creating The Physical Model
- Database Design: Changing Attributes to Columns
- Database Design: Creating The Physical Database
- Database Design Example: Curriculum Vitae
- NULLs
- The SQL Server Sample Databases
- The SQL Server Sample Databases: pubs
- The SQL Server Sample Databases: NorthWind
- The SQL Server Sample Databases: AdventureWorks
- The SQL Server Sample Databases: Adventureworks Derivatives
- UniversalDB: The Demo and Testing Database, Part 1
- UniversalDB: The Demo and Testing Database, Part 2
- UniversalDB: The Demo and Testing Database, Part 3
- UniversalDB: The Demo and Testing Database, Part 4
- Getting Started with Transact-SQL
- Transact-SQL: Data Definition Language (DDL) Basics
- Transact-SQL: Limiting Results
- Transact-SQL: More Operators
- Transact-SQL: Ordering and Aggregating Data
- Transact-SQL: Subqueries
- Transact-SQL: Joins
- Transact-SQL: Complex Joins - Building a View with Multiple JOINs
- Transact-SQL: Inserts, Updates, and Deletes
- An Introduction to the CLR in SQL Server 2005
- Design Elements Part 1: Programming Flow Overview, Code Format and Commenting your Code
- Design Elements Part 2: Controlling SQL's Scope
- Design Elements Part 3: Error Handling
- Design Elements Part 4: Variables
- Design Elements Part 5: Where Does The Code Live?
- Design Elements Part 6: Math Operators and Functions
- Design Elements Part 7: Statistical Functions
- Design Elements Part 8: Summarization Statistical Algorithms
- Design Elements Part 9:Representing Data with Statistical Algorithms
- Design Elements Part 10: Interpreting the Data—Regression
- Design Elements Part 11: String Manipulation
- Design Elements Part 12: Loops
- Design Elements Part 13: Recursion
- Design Elements Part 14: Arrays
- Design Elements Part 15: Event-Driven Programming Vs. Scheduled Processes
- Design Elements Part 16: Event-Driven Programming
- Design Elements Part 17: Program Flow
- Forming Queries Part 1: Design
- Forming Queries Part 2: Query Basics
- Forming Queries Part 3: Query Optimization
- Forming Queries Part 4: SET Options
- Forming Queries Part 5: Table Optimization Hints
- Using SQL Server Templates
- Transact-SQL Unit Testing
- Index Tuning Wizard
- Unicode and SQL Server
- SQL Server Development Tools
- The SQL Server Transact-SQL Debugger
- The Transact-SQL Debugger, Part 2
- Basic Troubleshooting for Transact-SQL Code
- An Introduction to Spatial Data in SQL Server 2008
- Performance Tuning
- Performance Tuning SQL Server: Tools and Processes
- Performance Tuning SQL Server: Tools Overview
- Creating a Performance Tuning Audit - Defining Components
- Creating a Performance Tuning Audit - Evaluation Part One
- Creating a Performance Tuning Audit - Evaluation Part Two
- Creating a Performance Tuning Audit - Interpretation
- Creating a Performance Tuning Audit - Developing an Action Plan
- Understanding SQL Server Query Plans
- Performance Tuning: Implementing Indexes
- Performance Monitoring Tools: Windows 2008 (and Higher) Server Utilities, Part 1
- Performance Monitoring Tools: Windows 2008 (and Higher) Server Utilities, Part 2
- Performance Monitoring Tools: Windows System Monitor
- Performance Monitoring Tools: Logging with System Monitor
- Performance Monitoring Tools: User Defined Counters
- General Transact-SQL (T-SQL) Performance Tuning, Part 1
- General Transact-SQL (T-SQL) Performance Tuning, Part 2
- General Transact-SQL (T-SQL) Performance Tuning, Part 3
- Performance Monitoring Tools: An Introduction to SQL Profiler
- Performance Tuning: Introduction to Indexes
- Performance Monitoring Tools: SQL Server 2000 Index Tuning Wizard
- Performance Monitoring Tools: SQL Server 2005 Database Tuning Advisor
- Performance Monitoring Tools: SQL Server Management Studio Reports
- Performance Monitoring Tools: SQL Server 2008 Activity Monitor
- The SQL Server 2008 Management Data Warehouse and Data Collector
- Performance Monitoring Tools: Evaluating Wait States with PowerShell and Excel
- Practical Applications
- Choosing the Back End
- The DBA's Toolbox, Part 1
- The DBA's Toolbox, Part 2
- Scripting Solutions for SQL Server
- Building a SQL Server Lab
- Using Graphics Files with SQL Server
- Enterprise Resource Planning
- Customer Relationship Management (CRM)
- Building a Reporting Data Server
- Building a Database Documenter, Part 1
- Building a Database Documenter, Part 2
- Data Management Objects
- Data Management Objects: The Server Object
- Data Management Objects: Server Object Methods
- Data Management Objects: Collections and the Database Object
- Data Management Objects: Database Information
- Data Management Objects: Database Control
- Data Management Objects: Database Maintenance
- Data Management Objects: Logging the Process
- Data Management Objects: Running SQL Statements
- Data Management Objects: Multiple Row Returns
- Data Management Objects: Other Database Objects
- Data Management Objects: Security
- Data Management Objects: Scripting
- Powershell and SQL Server - Overview
- PowerShell and SQL Server - Objects and Providers
- Powershell and SQL Server - A Script Framework
- Powershell and SQL Server - Logging the Process
- Powershell and SQL Server - Reading a Control File
- Powershell and SQL Server - SQL Server Access
- Powershell and SQL Server - Web Pages from a SQL Query
- Powershell and SQL Server - Scrubbing the Event Logs
- SQL Server 2008 PowerShell Provider
- SQL Server I/O: Importing and Exporting Data
- SQL Server I/O: XML in Database Terms
- SQL Server I/O: Creating XML Output
- SQL Server I/O: Reading XML Documents
- SQL Server I/O: Using XML Control Mechanisms
- SQL Server I/O: Creating Hierarchies
- SQL Server I/O: Using HTTP with SQL Server XML
- SQL Server I/O: Using HTTP with SQL Server XML Templates
- SQL Server I/O: Remote Queries
- SQL Server I/O: Working with Text Files
- Using Microsoft SQL Server on Handheld Devices
- Front-Ends 101: Microsoft Access
- Comparing Two SQL Server Databases
- English Query - Part 1
- English Query - Part 2
- English Query - Part 3
- English Query - Part 4
- English Query - Part 5
- RSS Feeds from SQL Server
- Using SQL Server Agent to Monitor Backups
- Reporting Services - Creating a Maintenance Report
- SQL Server Chargeback Strategies, Part 1
- SQL Server Chargeback Strategies, Part 2
- SQL Server Replication Example
- Creating a Master Agent and Alert Server
- The SQL Server Central Management System: Definition
- The SQL Server Central Management System: Base Tables
- The SQL Server Central Management System: Execution of Server Information (Part 1)
- The SQL Server Central Management System: Execution of Server Information (Part 2)
- The SQL Server Central Management System: Collecting Performance Metrics
- The SQL Server Central Management System: Centralizing Agent Jobs, Events and Scripts
- The SQL Server Central Management System: Reporting the Data and Project Summary
- Time Tracking for SQL Server Operations
- Migrating Departmental Data Stores to SQL Server
- Migrating Departmental Data Stores to SQL Server: Model the System
- Migrating Departmental Data Stores to SQL Server: Model the System, Continued
- Migrating Departmental Data Stores to SQL Server: Decide on the Destination
- Migrating Departmental Data Stores to SQL Server: Design the ETL
- Migrating Departmental Data Stores to SQL Server: Design the ETL, Continued
- Migrating Departmental Data Stores to SQL Server: Attach the Front End, Test, and Monitor
- Tracking SQL Server Timed Events, Part 1
- Tracking SQL Server Timed Events, Part 2
- Patterns and Practices for the Data Professional
- Managing Vendor Databases
- Consolidation Options
- Connecting to a SQL Azure Database from Microsoft Access
- SharePoint 2007 and SQL Server, Part One
- SharePoint 2007 and SQL Server, Part Two
- SharePoint 2007 and SQL Server, Part Three
- Querying Multiple Data Sources from a Single Location (Distributed Queries)
- Importing and Exporting Data for SQL Azure
- Working on Distributed Teams
- Professional Development
- Becoming a DBA
- Certification
- DBA Levels
- Becoming a Data Professional
- SQL Server Professional Development Plan, Part 1
- SQL Server Professional Development Plan, Part 2
- SQL Server Professional Development Plan, Part 3
- Evaluating Technical Options
- System Sizing
- Creating a Disaster Recovery Plan
- Anatomy of a Disaster (Response Plan)
- Database Troubleshooting
- Conducting an Effective Code Review
- Developing an Exit Strategy
- Data Retention Strategy
- Keeping Your DBA/Developer Job in Troubled Times
- The SQL Server Runbook
- Creating and Maintaining a SQL Server Configuration History, Part 1
- Creating and Maintaining a SQL Server Configuration History, Part 2
- Creating an Application Profile, Part 1
- Creating an Application Profile, Part 2
- How to Attend a Technical Conference
- Tips for Maximizing Your IT Budget This Year
- The Importance of Blue-Sky Planning
- Application Architecture Assessments
- Transact-SQL Code Reviews, Part One
- Transact-SQL Code Reviews, Part Two
- Cloud Computing (Distributed Computing) Paradigms
- NoSQL for the SQL Server Professional, Part One
- NoSQL for the SQL Server Professional, Part Two
- Object-Role Modeling (ORM) for the Database Professional
- Business Intelligence
- BI Explained
- Developing a Data Dictionary
- BI Security
- Gathering BI Requirements
- Source System Extracts and Transforms
- ETL Mechanisms
- Business Intelligence Landscapes
- Business Intelligence Layouts and the Build or Buy Decision
- A Single Version of the Truth
- The Operational Data Store (ODS)
- Data Marts – Combining and Transforming Data
- Designing Data Elements
- The Enterprise Data Warehouse — Aggregations and the Star Schema
- On-Line Analytical Processing (OLAP)
- Data Mining
- Key Performance Indicators
- BI Presentation - Client Tools
- BI Presentation - Portals
- Implementing ETL - Introduction to SQL Server 2005 Integration Services
- Building a Business Intelligence Solution, Part 1
- Building a Business Intelligence Solution, Part 2
- Building a Business Intelligence Solution, Part 3
- Tips and Troubleshooting
- SQL Server and Microsoft Excel Integration
- Tips for the SQL Server Tools: SQL Server 2000
- Tips for the SQL Server Tools – SQL Server 2005
- Transaction Log Troubles
- SQL Server Connection Problems
- Orphaned Database Users
- Additional Resources
- Tools and Downloads
- Utilities (Free)
- Tool Review (Free): DBDesignerFork
- Aqua Data Studio
- Microsoft SQL Server Best Practices Analyzer
- Utilities (Cost)
- Quest Software's TOAD for SQL Server
- Quest Software's Spotlight on SQL Server
- SQL Server on Microsoft's Virtual PC
- Red Gate SQL Bundle
- Microsoft's Visio for Database Folks
- Quest Capacity Manager
- SQL Server Help
- Visual Studio Team Edition for Database Professionals
- Microsoft Assessment and Planning Solution Accelerator
- Aggregating Server Data from the MAPS Tool
As technical professionals, we’re all called on to make decisions about one vendor, process, or other choices for our organization. And yet, many times people make decisions that don’t always fit the situation. In this tutorial I’ll show you how I normally evaluate my choices for solving a technical issue at the places I work. I’ll walk you step-by-step for the entire process, from defining the problem to strategies on living with the results of your choices.
Defining the Problem No, Wait, Defining the Goal
Most of us don’t value changing a production system just for the sheer excitement of it, because we don’t like taking a chance on those systems and frankly, we don’t have the time. I’ve written before about not even upgrading a system unless you need to. That being said, as the technical professional, your organization looks to you to stay on top of the latest research and watch them for alignment to your business goals. This actually brings me to my first point if you’re only facing a choice because of problems that arise, that’s a sure sign you’re in a reactionary mode. That’s not a good thing it means you’re in trouble all the time and just reacting to that trouble.
Instead, by making good choices, such as setting up some sort of maintenance and monitoring interval that alerts you before a problem hits, you can move from a reactionary stance to one where you and your team are adding value rather than just firefighting. You can do that by defining a goal instead of recognizing problems. It’s a subtle switch in thinking, but quite powerful. For instance, consider these two statements:
Our backups fail constantly. We need to fix that.
Versus:
Our systems need a reliable recovery solution.
True, both statements indicate a need for good backups, however, the second statement puts you on a good mental path it takes a “problem” off of the table, stating only the positive case of what you want. There’s another benefit here did you see it? The second statement doesn’t say anything about “backups” it states that the real goal is to be able to not only back up data, but to restore it as well, which is a very important distinction.
So, the first thing you need to do is to state the goals for any system, existing or new. The goals should start broadly, and go in big buckets like that “Business Continuity” item I just mentioned, and then get more specific as needed.
I understand that sometimes the decision is already quite limited such as “Do we upgrade to the latest version of SQL Server or not?”, but even that should be framed in larger business terms. Again, never implement a change for its own sake in production. For testing, that’s exactly what you should be doing, so you know the impact of those changes there.
Evaluation Criteria
After you’ve carefully created your goals, your next job is to lay out what it important to your organization as criteria for the “right” selection. For instance, the overall goal might be that statement I made earlier of our systems need a reliable recovery solution. That’s a fine place to start, but there are a lot of questions that are raised with the statement. Those questions then turn into statements, like this:
- We need a Recovery Point Interval (or Objective, RPO) of less than 500 transactions.
- Our Recovery Time Objective (RPO) is two hours.
- The solution must include the Application Server, the Middle Tier, and the Database Servers.
- The solution must cost no more than X.
- The solution must work with our current tracking system for reporting.
And so on. After that, you need to arrange these criteria in order of importance. This is sometimes really hard to do, but you have to involve the business to pick which item is the most important, which comes next, and so on. You are going to run into the situation where you’ll find two or more competing solutions, and you’ll have to pick between them. They will all do everything you need, with one or two exceptions and those exceptions will be the tie-breakers you have to already have decided.
Locating the Options
Now you’re off to selecting the various options you have. This is often the place most people start they think “we need a backup solution”, look up the backup vendors and off they go. They end up driven by marketing information, which can end badly.
Instead, you have your questions for the solution lined up as criteria and that’s where you start your search. Instead of searching for backup vendors, you can consider the right mix of procedures (which are thing you and your company needs to do regardless of vendor), processes, and then product. It’s important to enter all of these as parts of a complete solution it’s rare that a software or hardware product solves any issue completely. It’s almost always a mix of these three items.
With those identified, now it’s time to find your options. For complicated solutions, I recommend you hire a consultant, partner or services engagement to walk you through the process. These folks, and I assume you’ll vet them to find good ones, are kind of like a “buyer’s agent”, in that they are supposed to be as independent as they can for the solution. Sure, it costs money, but choosing the wrong decision can be far more expensive.
If you really don’t have any money, I mean you really don’t, then leverage the community. Ask questions on your social networks (like Twitter and Facebook and LinkedIn) and in forums. Ask when you attend your user groups. Put the word out that you are looking to solve a particular problem, and phrase those questions carefully and respectfully. Of course, protect your company’s private data don’t Tweet, for example, that you just suffered a major outage and you’re looking for a backup solution.
One final note on getting community help: make sure you vet each answer you get. Especially in the “free” area, it’s very much a question of quality. Don’t use just one set of answers to find your solution, instead make sure that you compare each answer and look for common information. That’s usually more interesting than the one-off solutions you’ll hear.
The easiest place, of course, is to check with the vendors in the areas that you need a solution for. All major vendors have web sites, sales teams, marketing and advertising that makes them easy to find. Although I save the vendors for last, I do include them. However, I show them my criteria list, and insist that they address that list.
Work with the vendor you can in fact make them a partner in the process, and if not, then switch vendors. It’s really that simple.
Crunching the Numbers
Now you have a matrix of requirements, and you can place the options you’ve found across the top of the matrix. Now it’s a matter of assigning a value to a particular solution based on your requirements. Here’s an over-simplified example:
Goal |
Vendor 1 |
Vendor 2 |
Vendor 3 |
We need a Recovery Point Interval (or Objective, RPO) of less than 500 transactions. |
1 |
5 |
2 |
Our Recovery Time Objective (RPO) is two hours. |
5 |
5 |
5 |
The solution must include the Application Server, the Middle Tier, and the Database Servers. |
1 |
3 |
4 |
The solution must cost no more than X. |
2 |
2 |
3 |
The solution must work with our current tracking system for reporting. |
5 |
4 |
2 |
In my case I’ve assigned a numerical range from 1 5 to the solution a vendor has offered. The view above does not have the “notes” section from my real spreadsheet or all of the data findings that I did for the research.
This brings me to my next point it’s important to set up a test environment and ensure that you’ve tested as best as possible the complete solution and documented your findings. This is essential to getting “real” or reliable data that you can really trust. Otherwise, you’ve simply done a lot of work and still run the risk of making a poor choice. In other words, the quality of your choice is directly related to how much time and effort that you put into this step. And the good thing is that this kind of effort gets easier as you do it. The testing servers are built, the scripts are all done and so on.
Presenting the Findings
Now you’ve crunched the numbers, and you have your choice ready to submit to management to write a check. Stop!
You need to have at least three solutions ready, usually in order of cost, and presented in terms of benefits for that cost. I call this my “T-Shirt” sizing you get this size shirt for this much, this one for that cost and so on. Any manager gets nervous if all you give them just one choice. So line up your choices, and it’s best to put your “favorite” one in the middle. Sorry to politicize the technical discussion, but it’s just human nature not to pick the bottom or top choice given three of them. I’m not saying, by any means, that you should manipulate numbers. What I am saying is that you should investigate all kinds of solutions, don’t just stop at the one you like.
Now take your data to the managers that will make the final decision and explain your decision process to them. This explanation gives them confidence that you’ve done your homework, and breeds trust in your professionalism.
Living with the Choice
The managers may push back, and hard, on the solution you choose. They may have good reasons for going with one solution over another, and in some cases the reasons are, well, less than good. Either way, you’ll have some solution to work through. At that point, you’re not done in fact, you’ve just started.
First, don’t let those vendor’s off of the hook. Some vendors like to sell a solution and then move on hopefully in your earlier investigations you identified these folks and ruled them out. You should be working with your vendor, and they should provide you with best practices, architecture patterns and so on. This really isn’t too much to ask it’s standard fare for any enterprise-level solution, and it’s something you should expect.
If you don’t agree with a particular practice or plan, then ask questions, join that support community, make it better. You’ve got this thing in place, and it’s your reputation that is on the line right along with it.
Finally, you’ll need to instrument your solution and bring it under your monitoring and management framework, so you can track how effective, efficient and functional it is. This will allow you to develop a Return On Investment (ROI) metric to make your decisions better, and of course to let your boss know why it was such a good idea to hire you.
InformIT Articles and Sample Chapters
I've covered this process in practical terms for selecting a database back end elsewhere in this Reference Guide in the appropriately-titled Choosing the Back End.
Books and eBooks
This information stretches to other technologies as well — Selecting MPLS VPN Services is a great book that covers this process for a VPN offering.
Online Resources
The CIO magazine blog has a good explanation of this process in terms of saving money.