- 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
In the database design process, the first thing you should do is completely understand the requirements created by the business or organization. Of course, that presumes that the business or organization has taken the time to actually create those requirements, but in any case you need to be able to completely understand what is required from the system to adequately design it.
Once you have that information, I’ve shown you how to create an Entity Relationship Diagram (ERD) in order to show the database design back to the organization, the developers, and the other data professionals. As I’ve mentioned, a graphical representation like an ERD is very useful at "dis-ambiguation" — in making things clear and easy to understand. If you design your database incorrectly, everything from data integrity all the way to performance can suffer, so ensuring that everyone agrees that the design captures the elements needed is essential. Also, creating a graphical representation of the database is also useful to check the work for errors — other data professionals and others involved can review the document and make any suggestions or corrections before the design is persisted into a physical database.
Normally the business requirements are delivered to the development and data teams in text. This is completely acceptable, and I’ve explained previously how to break down a narrative into nouns and verbs, and how to create entities and attributes (tables and columns) and the verbs into relationships. But that might not capture everything.
Understand that the businesspeople on the project don’t think in terms of tables and columns and relationships — they think of objects (like a purchase order), people, and activities. And it’s not just the businesspeople that think this way — remember that the data professional is only one part of a development team, and we are normally far outnumbered by the developers on a project. While some developers are quite familiar with a Relational Database Management System (RDBMS) design, others think more in terms of classes, methods and properties. So the business teams have one thought process, the developers another, and the data professionals yet another. So it’s important for the data professional to understand what the other teams use to describe their processes, so that you can communicate effectively with them.
In this article I’ll focus on what the business professionals use to describe their processes, using a graphical tool called Business Process Model Notation, or BPMN. I’ve already covered the tools the data professionals use, and in another tutorial I’ll explain the basics of the tools developers use. In all cases, I’ll map these back to the primary factors a data professional should be concerned with.
By no means are any of these articles complete and fully detailed. In the case of the ERD diagram, there are very few graphic elements that you can combine quickly to communicate complex information. In the base of BPMN, and the developer diagrams that follow, there are far more symbols, and combining them can make for a very complicated diagram. I’ll focus in these other diagrams on making sure that I use simple examples to introduce you to the concepts, but if you are asked to work with these diagrams there is far more to learn.
In this tutorial, I’ll give you a few tips for how to look at the diagram, then I’ll explain a few of the major elements, and then I’ll give you some references to find more information, and a handy PDF of a poster of all of these elements.
BPMN Explained With a Simple Diagram
So what is BPMN all about? It’s a matter of showing the actions of a business process against the objects within the process — and here’s the key part for the businessperson — the interactions each object, process or person has with another. It’s kind of an "impact diagram."
The direction you read a BPMN diagram is interesting because unlike an ERD or the tools used by a developer, the process might start right to left, left to right, or top to bottom — or bottom to top. It might consist of several "branching" symbols, which change the flow. Arrows dictate which direction one object, action or person interacts with the next. You can actually start reading the diagram anywhere, and just back up in the reverse direction of an arrow until you find the "head" or starting object, action or person.
When you see a BPMN diagram, you’ll notice symbols and text. The text is a refinement of the graphical element.
You’ll also notice that some BPMN diagrams, especially simpler ones, just have the symbols and arrows, while others group many of these into boxes. I’ll explain these groupings in more detail in a moment, but essentially they bundle together a system of tasks and flows, allowing them to interact with another. In that manner, you can "read" the larger box as something like "The purchase order process" and ignore (if you wish) the detailed steps within that box, focusing only on items you care about.
Those are the basics of reading a BPMN diagram. Here is a complete, although very simple, BPMN diagram of the same project I started with in the earlier database design tutorial:
You can probably tell from this simple example what is going on. I’ll add to this in a moment so that you can see how to create your own, but for now, I’ve diagramed one part of what BuckSoft consulting does. The firm provides consulting services, but of course that means there are several things that happen before a team of consultants goes out to work on a customer’s site.
First, notice that this is only one grouping — the Consulting Engagement Evaluation. That means that a sales or pre-engineering team goes out to talk with clients about retaining the services of the consulting firm. From there, the team schedules a meeting between the client and a consultant, both of whom will help decide whether there is a fit for the services. If not, the consultant returns and another process begins, a series of steps not shown in this diagram begins to find out why the deal was lost, and when that is complete, the engagement is cancelled.
If the client does select BuckSoft, this team’s work is done. They hand off the project to the implementation team, not shown on this diagram.
A Few BPMN Elements Described
From that simple example, you can begin to examine the parts of the BPMN document. I’ll describe them in a little more detail here, but again, you’ll want to check out the references at the end of this article for more.
Collaboration and Events
A "master" BPMN diagram usually contains only broad tasks and flow. While that’s interesting to the general designer, it’s not normally something the data professional is interested in. We’re looking for anything that needs to be recorded as a data element, so you will want to drill in to the greatest level of detail that you can.
In a complex process, the entire diagram normally starts with a Pool (think Swimming Pool here).
This groups a series of activities. Again, the items in them might have any order, but I’ve typically seen a left-to-right arrangement here in the U.S.
When there are multiple actions within a process (which is normal), smaller boxes are added inside the Pool called Lanes (like lanes in a swimming pool).
This arrangement (as I’ll show you in a moment) allows for processes to send results to each other, and receive information or objects back.
Next comes a rounded box, a Task:
This is exactly what I showed in the very first graphic, and the task can contain the details of an activity. Some diagrams omit these, but on the "rolled up" versions this is a common view. It’s a great way to see what the business does at a high level, and then each of these Tasks, Lanes and Pools can be examined in further detail based on the need of the person reading the diagram.
Events
Events are the details of a process. There are really only three types of these:
Start:
These are the things you do to start the process. There should be at least one of these in a process, although you can "stack" them above each other to indicate that multiple things happen at the same time, say, when an e-mail from a customer arrives.
Intermediate:
These are the events that happen between the beginning and end of a process. They have two lines in the circle, and many times have a graphic that indicate the event type. The resources at the end of this article will show you what these are.
End:
End events look similar to start events, except the line weight is much heavier. There are successful ends and unsuccessful ends and so on. The end task (like all of the other tasks) is dependent on the Pool, Lane or Activity drawn around it. Just because the sales team is done, that doesn’t indicate that the entire process is complete.
Graphics and text are placed in these circles to further describe the process, but they aren’t required. The text alone can indicate what the event is, although the more icons you use, the less text is needed, and you allow the folks that care about e-mail, for instance, to quickly locate what they care about. The danger is that you use so many icons no one can follow what is happening, or that you aren’t consistent. If you use a graphic for e-mail, make sure you use it all the time or you’ll miss the point.
Gateways
A gateway indicates a branch, decision or choice. Its symbol is borrowed from standard flowcharts:
A Gateway diamond may also include a graphic, again, see the references at the end for those details. If you need to stack up more than three decision points, use multiple diamonds or just multiple lines from the diamond. The diamond shape is used regardless of how many actual decision answers there are, even just two.
Data
The data shape shows that some process, person or action created a data element that must be persisted:
It’s normally in the shape of a piece of paper, but you may also see an e-mail shape or the "can" shape used by a database diagram.
This is often the graphics the data professional is looking for in a BPMN diagram — but they can be very deceiving. For one thing, the business does not often know what should be kept as a datum. They think of a Purchase Order as a document, but not necessarily a data element. And BPMN diagrams almost never take into account "Meta-Data", or the descriptors of a process such as time of day and so on.
So you might think that the BPMN diagram is not as useful for the data professional as it could be — but the most value it has in my experience is that meta-data. Each of these shapes may have something that the business actually needs to be recorded. And being able to read those symbols helps you (and the developers) tease that out.
Conversations (sometimes called Communications)
Pools, Lanes and Tasks often need to send the results from one side to another. That’s indicated with a simple line (sometimes a broken line) drawn from the event in one lane to an event in another. It might look something like this:
You may also see a "crow’s foot" notation similar to an ERD diagram. This is used to indicate multiple actions that funnel to one communication.
Where to Go to Learn More
As you can see, even with these few symbols, a BPMN diagram can be quite complex. Done properly, it really helps clear up a complicated flow, but done incorrectly, it can actually make things more confusing. If you do decide to learn to use one, there are some great references to start with,
First, there’s a poster in PDF that is very helpful. You can find it here: http://www.bpmb.de/images/BPMN2_0_Poster_EN.pdf
The group that owns and manages the standard is here: http://www.bpmn.org/
Many shops that use BPMN take it to the next step of an "Execution Language" specification called BPEL. You can learn more about that in the article Achieving Separation of Concerns Using BPEL.