You are here: Home > IT Training > SQL Server Programming & Development

SQL Server Programming & Development

Microsoft SQL Server

Course Aims

SQL Server enables vast quantities of data to be stored and made available to many people. Structured Query Language, or SQL, underpins almost all operations required to develop relational database applications using SQL Server.

This training course will show you how to use SQL to extract (query), structure and manipulate data to make it useful. This includes Transact-SQL stored procedures and using programming structures like IF/ELSE or looping with WHILE to enable the data processing to be efficient and dynamic.

Versions:

Microsoft SQL Server 2005 or 2008

 

Profile Outline:

SQL Server Architecture

  • SQL Server edition overview
  • Introducing the new tools
  • SQL Server Management Studio

Managing Tables with DDL

Creating tables

  • Selecting appropriate SQL Server data types
  • Constructing tables with CREATE TABLE

Adding constraints

  • Enforcing uniqueness using PRIMARY KEY and UNIQUE constraints
  • Validating relationships using FOREIGN KEY

Retrieving Data with Transact-SQL Stored Procedures

Selecting data

  • Developing stored procedures that extract data from multiple servers
  • Executing remote procedures
  • Developing recursive queries with common table expressions (CTE)
  • Producing cross tabulations using PIVOT

Declaring variables and parameters

  • Creating and utilising local variables
  • Passing input and output parameters
  • Capturing the return value
  • Interrogating global variables

Calling built-in scalar functions

  • Converting data using CAST and CONVERT
  • Manipulating dates using DATEPART
  • Ordering data with ranking functions
  • Encrypting and decrypting data

Maintaining Data

Modifying data

  • Inserting, updating and deleting data
  • Ensuring data consistency with transactions
  • Managing concurrency with isolation levels
  • SQL Server locking fundamentals
  • Avoiding blocking problems

Programming procedural statements

  • Implementing conditions with IF...ELSE
  • Looping with WHILE and GOTO
  • Creating code blocks with BEGIN...END
  • Debugging with PRINT

Handling errors

  • Communicating problems to the client with RAISERROR
  • Intercepting errors with TRY...CATCH

Producing server-side result sets

  • Building and using temporary tables
  • Processing rows on the server with a cursor
  • Taking advantage of table variables

Developing Views, Functions and Triggers with Transact-SQL

Storing queries on the server

  • Concealing complexity with views
  • Solving business problems using multi-statement table-valued functions

Defining computations

  • Calculating values with scalar functions
  • Calling functions from SQL

Formulating triggers

  • INSTEAD OF vs. AFTER triggers
  • Detecting row changes using the inserted and deleted table
  • Tracing meta-data changes with DDL triggers

Querying and Storing XML

Exchanging XML data

  • Extending queries with FOR XML
  • Using PATH and TYPE to create nested XML

Leveraging XQuery capabilities

  • Filtering rows based on XML elements
  • Extracting data from an XML column

Integrating .NET CLR with SQL Server

Developing procedural code in .NET

  • Contrasting Transact-SQL with the rich .NET programming model
  • Building Common Language Runtime procedures, functions and triggers
  • Applying best practices

Extending SQL Server with .NET

  • Developing aggregates for enhanced functionality
  • Augmenting SQL Server with .NET data types

DO NOT DELETE THIS TEXT
Profile Details:
Course Dates:

Please call for dates

Training Options
Information & print: