Program with Transact-SQL
Offered By: Microsoft via Microsoft Learn
Course Description
Overview
- Module 1: Get started with Transact-SQL programming
- Describe the language elements of T-SQL used for simple programming tasks.
- Describe batches and how they're handled by SQL Server.
- Declare and assign variables and synonyms.
- Use IF and WHILE blocks to control program flow.
- Module 2: Create stored procedures and table-valued functions
- Return results by executing stored procedures.
- Pass parameters to procedures.
- Create simple stored procedures that encapsulate a SELECT statement.
- Construct and execute dynamic SQL with EXEC and sp_executesql.
- Create simple inline table-valued functions and write queries against them.
- Module 3: Implement error handling with Transact-SQL
- Raise errors using the RAISERROR statement.
- Raise errors using the THROW statement.
- Use the @@ERROR system variable.
- Create custom errors.
- Create alerts that fire when errors occur.
- Module 4: Implement transactions with Transact-SQL
- Describe transactions.
- Compare transactions and batches.
- Create and manage transactions.
- Handle errors in transactions.
- Describe concurrency.
After completing this module, you will be able to:
After completing this module, you will be able to:
After completing this module, you will be able to:
After completing this module, you will be able to:
Syllabus
- Module 1: Get started with Transact-SQL programming
- Introduction
- Describe T-SQL for programming
- Describe batches
- Declare and assign variables and synonyms
- Use IF and WHILE blocks to control program flow
- Exercise: Program with T-SQL
- Knowledge check
- Summary
- Module 2: Create stored procedures and table-valued functions
- Introduction
- Call stored procedures
- Pass parameters to stored procedures
- Create a stored procedure
- Use dynamic SQL with EXEC and sp-execute-sql
- Create inline table-valued functions
- Exercise: Create stored procedures and table-valued functions
- Knowledge check
- Summary
- Module 3: Implement error handling with Transact-SQL
- Introduction
- Implement T-SQL error handling
- Implement structured exception handling
- Exercise: Implement error handling with Transact-SQL
- Knowledge check
- Summary
- Module 4: Implement transactions with Transact-SQL
- Introduction
- Describe transactions
- Compare transactions and batches
- Create and manage transactions
- Handle errors in transactions
- Describe concurrency
- Exercise: Implement transactions with Transact-SQL
- Knowledge check
- Summary
Tags
Related Courses
Learning Transact-SQLLinkedIn Learning Program Databases with Transact-SQL
LinkedIn Learning Get Started Querying with Transact-SQL
Microsoft via Microsoft Learn Write advanced Transact-SQL queries
Microsoft via Microsoft Learn Microsoft Future Ready: Data Query with Transact-SQL (T-SQL)
Cloudswyft via FutureLearn