A Small Class Size is the Best Learning Environment*
Only F1 has no more than 6 Delegates in a Class
Everyone has Individual Attention from the Trainer
Niche
SQL Server 2012

Developing Microsoft SQL Server 2012 Databases
(Microsoft Training Course: 10776) - 5 days - £1850 exc VAT

Save up to 50% of the cost of some courses: check our Certification Packages or buy F1 Training Vouchers


> Target Audience
This course introduces SQL Server 2012 and describes logical table design, indexing and query plans. It is intended for IT Professionals who want to become skilled on SQL Server 2012 product features and technologies for implementing a database.
> Course outline
  1. Introduction to SQL Server 2012 and its Toolset
  2. Working with Data Types
  3. Designing and Implementing Tables
  4. Ensuring Data Integrity through Constraints
  5. Planning for SQL Server 2012 Indexing
  6. Implementing Table Structures in SQL Server 2012
  7. Reading SQL Server 2012 Execution Plans
  8. Improving Performance through Nonclustered Indexes
  9. Designing and Implementing Views
  10. Designing and Implementing Stored Procedures
  11. Merging Data and Passing Tables
  12. Designing and Implementing User-Defined Functions
  13. Creating Highly Concurrent SQL Server 2012 Applications
  14. Handling Errors in T-SQL Code
  15. Responding to Data Manipulation via Triggers
  16. Implementing Managed Code in SQL Server 2012
  17. Storing XML Data in SQL Server 2012
  18. Querying XML Data in SQL Server
  19. Working with SQL Server 2012 Spatial Data
  20. Working with Full-Text Indexes and Queries


Module 1: Introduction to SQL Server 2012 and its Toolset
  • Working with SQL Server Tools
  • Configuring SQL Server Services
  • Lab: Introduction to SQL Server and its Toolset
  • Verifying SQL Server Component Installation
  • Altering Service Accounts for New Instance
  • Enabling Named Pipes Protocol
  • Creating an Alias for AdvDev
  • Ensuring SQL Browser is Disabled and Configure a Fixed TCP/IP Port
Skills
  • Describe the SQL Server Platform.
  • Work with SQL Server Tools.
  • Configure SQL Server Services.
top
Module 2: Working with Data Types
  • Using and Converting Data Types
  • Working with Character Data
  • Specialized Data Types
  • Lab: Working with Data Types
  • Choosing Appropriate Data Types
  • Writing Queries With Data Type Conversions
  • Designing and Creating Alias Data Types
Skills
  • Work with, and covert between, data types.
  • Work with character data.
  • Use specialized data types.
top
Module 3: Designing and Implementing Tables
  • Designing Tables
  • Working with Schemas
  • Creating and Altering Tables
  • Lab: Designing and Implementing Tables
  • Improving the Design of Tables
  • Creating a Schema
  • Creating the Tables
Skills
  • Design Tables.
  • Work with Schemas.
  • Create and Alter Tables.
top
Module 4: Ensuring Data Integrity through Constraints
  • Enforcing Data Integrity
  • Implementing Domain Integrity
  • Implementing Entity and Referential Integrity
  • Lab:Ensuring Data Integrity throughConstraints
  • Designing and Testing Constraints
Skills
  • Explain the options for enforcing data integrity and the levels at which they should be applied.
  • Implement domain integrity.
  • Implement entity and referential integrity.
top
Module 5: Planning for SQL Server 2012 Indexing
  • Core Indexing Concepts
  • Data Types and Indexes
  • Single Column and Composite Indexes
  • Lab: Planning for SQL Server Indexing
  • Exploring existing index statistics
  • Designing column orders for indexes
Skills
  • Explain core indexing concepts.
  • Describe the effectiveness of each data type common used in indexes.
  • Plan for single column and composite indexes
top
Module 6: Implementing Table Structures in SQL Server 2012
  • SQL Server Table Structures
  • Working with Clustered Indexes
  • Designing Effective Clustered Indexes
  • Lab: Implementing Table Structures
  • Creating Tables as Heaps
  • Creating Tables with Clustered Indexes
  • Comparing Clustered Indexes vs. Heaps
Skills
  • Explain how tables can be structured in SQL Server databases.
  • Work with and design clustered indexes.
top
Module 7: Reading SQL Server 2012 Execution Plans
  • Reading SQL Server 2012 Execution Plans
  • Execution Plan Core Concepts
  • Common Execution Plan Elements
  • Working with Execution Plans
  • Lab: Reading SQL Server Execution Plans
  • Actual vs. Estimated Plans
  • Identifying Common Plan Elements
  • Querying Cost Comparison
  • Skills:
  • Explain concepts related to execution plans
  • Describe the role of the most common execution plan elements.
  • Execution Plan Core Concepts
  • Common Execution Plan Elements
  • Working with Execution Plans
  • Lab: Reading SQL Server Execution Plans
  • Actual vs. Estimated Plans
  • Identifying Common Plan Elements
  • Querying Cost Comparison
Skills
  • Explain concepts related to execution plans
  • Describe the role of the most common execution plan elements.
top
Module 8: Improving Performance through Nonclustered Indexes
  • Designing Effective Nonclustered Indexes
  • Implementing Nonclustered Indexes
  • Using the Database Engine Tuning Advisor
  • Lab: Improving Performance through Nonclustered Indexes
  • Nonclustered index usage review
  • Improving nonclustered index designs
  • Working with SQL Server Profiler and Database Engine Tuning Advisor
  • Designing nonclustered index
Skills
  • Design effective nonclustered indexes
  • Implement nonclustered indexes
top
Module 9: Designing and Implementing Views
  • Introduction to Views
  • Creating and Managing Views
  • Performance Considerations for Views
  • Lab: Designing and Implementing Views
  • Designing, Implementing and Testing the WebStock Views and Contacts View
  • Modifying the AvailableModels View
Skills
  • Explain views in database development.
  • Implement and describe the impact of views.
top
Module 10: Designing and Implementing Stored Procedures
  • Introduction to Stored Procedures
  • Working With Stored Procedures
  • Implementing Parameterized Stored Procedures
  • Controlling Execution Context
  • Lab: Designing/Implementing Stored Procedures
  • Creating stored procedures
  • Creating a parameterized stored procedure
  • Altering the execution context of stored procedures
Skills
  • Describe the role of stored procedures and the potential benefits of using them.
  • Work with stored procedures.
  • Implement parameterized stored procedures.
  • Control the execution context of a stored procedure.
top
Module 11: Merging Data and Passing Tables
  • Using the MERGE Statement
  • Implementing Table Types
  • Using TABLE Types As Parameters
  • Lab: Passing Tables and Merging Data
  • Creating a Table Type
  • Using a Table Type Parameter
  • Using a Table Type with MERGE
Skills
  • Use the MERGE statement.
  • Implement table types.
  • Use TABLE types as parameters
top
Module 12: Designing and Implementing User-Defined Functions
  • Overview of Functions
  • Designing and Implementing Scalar Functions
  • Designing/Implementing Table-Valued Functions
  • Implementation Considerations for Functions
  • Alternatives to Functions
  • Lab: Designing and Implementing User-Defined Functions
  • Formatting Phone Numbers
  • Modifying an Existing Function
  • Resolve a Function-related Performance Issue
Skills
  • Design and implement scalar functions.
  • Design and implement table-valued functions.
  • Describe implementation considerations for functions.
  • Describe alternatives to functions.
top
Module 13: Creating Highly Concurrent SQL Server 2012 Applications
  • Introduction to Transactions
  • Introduction to Locks
  • Management of Locking
  • Transaction Isolation Levels
  • Lab: Creating Highly Concurrent SQL Server Applications
  • Detecting Deadlocks
  • Investigating Transaction Isolation Levels
Skills
  • Describe the role of transactions
  • Explain the role of locks
  • Manage locking
  • Work with transaction isolation level
top
Module 14: Handling Errors in T-SQL Code
  • Understanding T-SQL Error Handling
  • Implementing T-SQL Error Handling
  • Implementing Structured Exception Handling
  • Lab: Handling Errors in T-SQL Code
  • Replacing @@ERROR based error handling with structured exception handling
  • Adding deadlock retry logic to stored procedure
Skills
  • Design T-SQL error handling
  • Implement T-SQL error handling
  • Implement structured exception handling
top
Module 15: Responding to Data Manipulation via Triggers
  • Introduction to DML triggers and how they enforce data integrity.
  • Designing DML Triggers
  • Implementing DML Triggers
  • Advanced Trigger Concepts
  • Lab: Responding to Data Manipulation via Triggers
  • Creating and Testing the Audit Trigger
  • Improving the Audit Trigger
Skills
  • Design DML triggers.
  • Implement DML triggers.
  • Explain advanced DML trigger concepts.
top
Module 16: Implementing Managed Code in SQL Server 2012
  • Introduction to SQL CLR Integration
  • Importing and Configuring Assemblies
  • Implementing SQL CLR Integration
  • Lab: Designing and Implementing Views
  • Assessing Proposed CLR Code
  • Implementing a CLR Assembly
  • Implementing a CLR User-defined Aggregate and CLR User-defined Data Type
Skills
  • Explain the importance of SQL Server CLR Integration.
  • Import and configure assemblies.
  • Implement objects that have been created within .NET assemblies.
top
Module 17: Storing XML Data in SQL Server 2012
  • Introduction to XML and XML Schemas
  • Storing XML Data and Schemas in SQL Server
  • Implementing the XML Data Type
  • Lab: Storing XML Data in SQL Server
  • Appropriate Usage of XML Data Storage
  • Investigating Storage of XML Data in Variables
  • Investigating the use of XML Schema Collections
  • Investigating the Creation of Database Columns Based on XML
Skills
  • Describe XML and XML schemas.
  • Store XML data and associated XML schemas.
  • Implement the XML data type within SQL Server.
top
Module 18: Querying XML Data in SQL Server
  • Using the T-SQL FOR XML Statement
  • Getting Started with XQuery
  • Shredding XML
  • Lab: Querying XML Data in SQL Server
  • Learning to query SQL Server data as XML
  • Writing a stored procedure returning XML
  • Writing stored procedure that updates with XML
Skills
  • Use the T-SQL FOR XML Statement.
  • Work with basic XQuery queries.
  • Shred XML to a relational form.
top
Module 19: Working with SQL Server 2012 Spatial Data
  • Introduction to Spatial Data
  • Working with SQL Server Spatial Data Types
  • Using Spatial Data in Applications
  • Lab: Working with SQL Server Spatial Data
  • Familiarity With Geometry Data Type
  • Adding Spatial Data to an Existing Table
  • Business Application of Spatial Data
Skills
  • Describe the importance of spatial data and the industry standards related to it.
  • Explain how to store spatial data in SQL Server.
  • Perform calculations on and query SQL Server spatial data.
top
Module 20: Working with Full-Text Indexes and Queries
  • Introduction to Full-Text Indexing
  • Implementing Full-Text Indexes in SQL Server
  • Working with Full-Text Queries
  • Lab: Working with Full-Text Indexes and Queries
  • Implementing a full-text index
  • Implementing a stoplist
  • Creating a stored procedure to implement a full-text search
Skills
  • Describe why user interfaces in existing applications are not sufficient for end user search needs
  • Implement full-text indexes in SQL Server
top
> Pre-Requisites
Before attending this course, students must have the following pre-requisites:
  • Knowledge of writing T-SQL queries.
  • Knowledge of basic relational database concepts.
> Purpose
After completing this course, students will be able to: Introduce the entire SQL Server platform; determine data types to be used; be aware of good design practices, create tables using T-SQL; implement PRIMARY KEY, FOREIGN KEY, DEFAULT, CHECK and UNIQUE constraints; determine appropriate indexes strategies; read and interpret execution plans; design non-clustered indexes; design and implement views & stored procedures; work with table types, table valued parameters and use the MERGE statement to create stored procedures that update data warehouses; design and implement functions; perform basic investigation of a deadlock situation and learn how transaction isolation levels affect application concurrency; use traditional T-SQL error handling code and structured exception handling; design and implement DML triggers; learn uses for SQL CLR integration and implement an existing .NET assembly within SQL Server; store XML data and schemas; perform basic queries on XML data; work with the spatial data types; implement and query a full-text index.