Professional Training
5.0 (1 Reviews)

Programming Microsoft SQL Server with Transact-SQL

Length
16 hours
Price
900 GBP
Next course start
16 May, 2024 (+4 start dates)
Course delivery
Virtual Classroom
Length
16 hours
Price
900 GBP
Next course start
16 May, 2024 (+4 start dates)
Course delivery
Virtual Classroom
Leave your details so the provider can get in touch

Course description

Programming Microsoft SQL Server with Transact-SQL Course Overview

The Programming Microsoft SQL Server with Transact-SQL training course introduces the delegate to the programming features of the Transact-SQL programming language, using Microsoft SQL Server. This course looks at the procedural programming language capabilities of T-SQL. The delegate will learn how to use local variables, write program flow control constructs, create stored procedures and triggers, handle errors and use built-in functions.

Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.

Who will the Course Benefit?

Software development personnel and database support staff who need to write Transact-SQL scripts to enhance their productivity in manipulating data.

Course Objectives

To provide the skills needed to write programs using the main features of the Microsoft Transact-SQL Programming Language.

Upcoming start dates

Choose between 4 start dates

16 May, 2024

  • Virtual Classroom
  • Online

22 July, 2024

  • Virtual Classroom
  • Online

7 October, 2024

  • Virtual Classroom
  • Online

16 December, 2024

  • Virtual Classroom
  • Online

Suitability - Who should attend?

Requirements

A working knowledge of SQL is required along with practical experience in writing SQL statements. This can be obtained by attendance on the pre-requisite Querying Microsoft SQL Server with Transact-SQL course. Some previous programming experience will also prove advantageous.


Experience to the level as demonstrated in this course is recommended:
  • Querying Microsoft SQL Server with Transact-SQL

Training Course Content



Programming Microsoft SQL Server with Transact-SQL Training Course

Course Contents - DAY 1

Course Introduction
  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions
Session 1: INTRODUCTION TO TRANSACT-SQL
  • Procedural Programming Language
  • Program structures
  • Statement blocks
  • Comments
Session 2: VARIABLES
  • What is a variable
  • Declaring a variable
  • Variable names
  • Available data types
  • Variable scope
  • Using the SET command
  • Initialise a variable
  • Display the values of variables
  • Set variables in a query
  • Assign values to variables in the UPDATE Statement
Session 3: CONDITIONAL LOGIC
  • IF THEN ELSE statements
  • Nested IF statements
  • Specifying Conditions
Session 4: LOOPS AND OTHER CONTROL-OF-FLOW MECHANISMS
  • The basic Loop construct
  • The WHILE loop
  • The BREAK statement
  • The CONTINUE statement
  • The GOTO statement
  • The WAITFOR statement
Session 5: PROCESSING RECORDS WITH CURSORS
  • What is a cursor?
  • Cursor operations
  • Declare a cursor
  • Local and global cursors
  • Open a cursor and fetch a row
  • Cursor status checking with @@FETCH_STATUS
  • Close and deallocate a cursor
  • @@CURSOR_ROWS
  • Use Cursor variables
  • The FOR UPDATE and WHERE CURRENT OF statements
  • Declare cursor options
  • Cursor operation restrictions
Programming Microsoft SQL Server with Transact-SQL Training Course

Course Contents - DAY 2

Session 6: STORED PROCEDURES
  • What is a stored procedure?
  • The advantages of using stored procedures
  • What is allowed and disallowed in a stored procedure
  • Create a stored procedure
  • Execute a stored procedure
  • Use parameters
  • Execute a procedure with parameters
  • Use SET NOCOUNT ON
  • Use a result set in an INSERT statement
  • Set the return value of a procedure
  • Output parameters
  • View the source code of a stored procedure
Session 7: HANDLING ERRORS
  • Handling errors
  • The @@ERROR global function
  • Using @@ERROR
  • The TRY..CATCH statement
  • The CATCH block
  • Other error functions
  • The RAISERROR statement
Session 8: USER DEFINED FUNCTIONS
  • What is a user defined function?
  • Creating user defined function
  • Return a value from a user defined function
  • Call a scalar function
  • Table-Valued Functions
  • Call table valued functions
  • Inline table valued functions
  • Multi-statement table valued functions
Session 9: TRIGGERS
  • What is a trigger?
  • How a trigger can be used
  • Trigger types
  • What can be done in trigger code?
  • DML triggers and syntax
  • The inserted and deleted tables
  • The UPDATE()function
  • COLUMNS_UPDATED
  • Use INSTEAD OF triggers
  • The INSTEAD OF trigger rules
  • View Triggers
  • DDL triggers
  • Create a DDL triggers
  • Notes on DDL trigger
  • Logon triggers
  • View trigger information
  • Alter a trigger definition
  • Disable, enable and drop triggers
Session 10: DYNAMIC SQL
  • What is dynamic SQL?
  • Create a dynamic SQL statement
  • Prevent SQL injection


Customer Outreach Award

customer-outreach-badge-2019

We believe that it should be easy for you to find and compare training courses. 

Our Customer Outreach Award is presented to trusted providers who are excellent at responding to enquiries, making your search quicker, more efficient and easier, too.

Reviews

Average rating 5

Based on 1 reviews.
Write a review!
5/5
Steven
16 Sep 2019
excellent trainer, couldn't ask for better :)

excellent trainer, couldn't ask for better :)

Continuing Studies

Further Learning

  • Advanced Querying Microsoft SQL Server with Transact-SQL

Request info

Contact course provider

Fill out your details to find out more about Programming Microsoft SQL Server with Transact-SQL.

  Contact the provider

  Get more information

  Register your interest

Country *

reCAPTCHA logo This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
StayAhead Training
56 Commercial Road
E1 1LP London

Why StayAhead. From a single person on a scheduled course to large scale training projects StayAhead Training have the expertise and experience to help. Established since 1992, StayAhead Training is recognised as one of the leading independent IT Training specialists...

Read more and show all courses with this provider

Ads