Skip Ribbon Commands
Skip to main content

MS-50439 - Basics of Transact SQL with SQL Server 2008 R2


Duration: 3 Days




Delivery Method:

Software Assurance Value:

Microsoft CPE:

Course Information

Course Description

This instructor-led course provides students with the necessary knowledge to work with the data in SQL Server 2008R2. They will learn how to use the built in tools included with SQL Server to construct queries, do tuning, analyze a query and it’s performance, along with how to modify existing data, perform joins, create indexes, and work with XML. The new features are discussed and their impact is explained.

Course Objectives

After completing this course, students will be able to: 

•Use SQL Server Management Studio (SSMS).
•Use SSMS to generate queries.
•Use the Object Browser.
•Use the Template manager.
•Customize the SSMS environment.
•Run a trace in SQL Profiler.
•Use the debugger with a query.
•Work with SQL Server Integration Services to do a basic package for import/export.
•Use the Database Tuning Advisor.
•Read an Execution Plan.
•Explain and perform single table queries.
•Perform joins between tables.
•Understand indexing and its impact.
•Write code within the context of a transaction.
•Utilize Try-Catch error handling.
•Use Stored Procedures. 
•Explain the new language features.
•Write a sub-query. 
•Use common table expressions.
•Work with the XML datatype and the new methods.

Course Audience

This course is intended for Power Users and IT Professionals that are called on occasionally to work with SQL Server in the retrieving, or modifying of data and need a good foundation to perform those functions. This would include those users that develop reports and need to create Data Sets that work efficiently. 

Course Outline

Module 1: The Toolsets

•SQL Server Management Studio
•SQLCMD Utility
•Business Intelligence Development Studio (BIDS)
•SQL Profiler
•Bulk Copy
•Adventure Works Sample Database
•Data Definition Language

Lab : The Toolsets
•Set Options in SSMS
•Create a Solution and Project
•Explore the Query Editor
•Examine Graphical Execution Plans
•Use Object Explorer
•Use SQLCMD Utility
•Create a Basic SSIS Package Using the Wizard
•Run a SQL Profiler Trace

Module 2: Data Types and New T-SQL Language Features

•SQL Server Data Types
•New Data Types
•Hierarchyid Data Type
•Spatial Data
•Date and Time
•FileStream Storage
•Grouping Sets

Lab : Data Types and New T-SQL Language Features
•Use Hierarchyid
•Use Merge Statement

Module 3: Single Table Queries

•Logical Query Processing
•Query Clauses (Listed in Logical Processing Order)

Lab : Single Table Queries
•Query Clauses

Module 4: Joining Multiple Tables

•Old Style vs. New Style
•Cross Join
•Inner Join
•Outer Join
•Self Join
•Joining Multiple Tables

Lab : Joining Multiple Tables
•Cross Join
•Inner Join
•Outer Join
•Multiple Tables

Module 5: Subqueries, Common Table Expressions and Ranking Functions

•Self-Contained Subqueries
•Correlated Subqueries
•Derived Tables
•Common Table Expressions
•Analytic Ranking Functions

Lab : Subqueries, Common Table Expressions and Ranking Functions
•Derived Tables
•Common Table Expressions

Module 6: Indexing

•Understanding Execution Plans
•Table and Index Structures
•Clustered Index
•Non Clustered Index on Heap
•Non Clustered Index on Clustered Index

Lab : Indexing
•Set Statistics IO
•WHERE Clause
•Narrow Indexes
•Column Uniqueness
•Column Ordering

Module 7: Query Tuning

•System Performance Analysis
•Query Analysis
•Database Engine Tuning Advisor
•Bookmark Lookup
•Statistics Analysis
•Query Design

Lab : Query Tuning
•Performance Monitor
•Dynamic Management Views
•SQL Profiler
•Database Engine Tuning Advisor
•Query Design

Module 8: Data Modification, Transactions and Error Processing

•Modifying Data INSERT
•Modifying Data UPDATE
•Modifying Data DELETE
•Error Processing
•Debugging in SQL Server 2008

Lab : Data Modification, Transactions and Error Processing
•Inserting Values
•Use Bulk Copy
•Modify Data

Module 9: Stored Procedures and Triggers

•Stored Procedures

Lab : Stored Procedures and Triggers
•Basic Stored Procedure
•Stored Procedure with Parameters (In)
•Stored Procedure with Parameters (In and Out)

Module 10: XML

•XML Introduction
•XML in SQL Server
•XML Data Type
•XML Indexes

Lab : XML
•FOR XML Clause
•Create Table with an XML Column
•Register a Schema
•Query() Method
•Value() Method
•Exist() Method
•Modify() Method
•Nodes() Method

Course Prerequisites

Course Schedule
This course is not scheduled yet.

Upcoming Training

SEC+ - Security+ Prep
SEC+ - Security+ Prep