SQL Server: Transact-SQL Basic Data Modification
Learn how to construct INSERT, UPDATE, and DELETE statements to modify data in SQL Server databases, applicable for developers from SQL Server 2005 onwards
What you'll learn
If you need to modify data in a SQL Server database, then you need to know how to use the INSERT, UPDATE and DELETE statements. This course starts by explaining how to find information about the tables and columns you want to modify. It then explains the INSERT, UPDATE, and DELETE statements in detail along with various methods for limiting the data being modified. Finally it moves beyond the basic modification statements to more advanced topics like the MERGE statement, error handling and more. More then thirty five demos help to give you a thorough understanding of how to perform these essential operations, all using a freely-available demo environment that you're shown how to set up and configure. This course is perfect for developers who need to modify data in SQL Server databases, from complete beginners through to more experienced developers who can use some of the modules as reference material. The information in the course applies to all versions from SQL Server 2005 onwards.
Table of contents
- Module Introduction 1m
- SQL Server 2012 Express with Tools 1m
- SQL Server 2012 Express Abridged Requirements 2m
- Demo: Checking Hardware and OS Specifications 1m
- Demo: Checking .NET 3.5 SP1 Prerequisites 2m
- Demo: Installing SQL Server 2012 Express with Tools 8m
- SQL Server Management Studio (SSMS) 1m
- Demo: Using SSMS 3m
- SQL Server Data Tools (SSDT) 1m
- Demo: Installing SSDT 3m
- AdventureWorks Sample Database 1m
- Demo: Attaching the AdventureWorks Sample Database 5m
- Basic Data Modification Query in SSMS and SSDT 1m
- Demo: Execute a Data Modification Query in SSMS 4m
- Demo: Execute a Data Modification Query in SSDT 5m
- Module Introduction 1m
- Using sp_help 1m
- Identity and RowGuidCol sp_help Information 1m
- Constraint sp_help Information 1m
- Demo: sp_help 3m
- Catalog Views 1m
- Demo: Catalog Views 2m
- Catalog Views (2) 1m
- Demo: Catalog Views (2) 4m
- Triggers 1m
- Demo: Trigger Catalog View 2m
- sys.dm_sql_referencing_entities 0m
- Demo: sys.dm_sql_referencing_entities 2m
- Module Introduction 1m
- Demo: Backing up and restoring your sample database 5m
- Basic Row Insert 1m
- Demo: Basic Row Insert 2m
- Column List 1m
- Demo: Column List Usage 4m
- Specifying Data Values 1m
- Transact-SQL Row Constructors 1m
- Demo: Transact-SQL Row Constructors 4m
- Handling Defaults 1m
- Demo: Handling Defaults 4m
- Populating via Derived Table and EXECUTE 1m
- Demo: Populating via Derived Table and EXECUTE 3m
- Module Introduction 1m
- Simple Update 1m
- Demo: Simple UPDATE 2m
- UPDATE with FROM 1m
- Demo: UPDATE with FROM 2m
- Defaults 0m
- Demo: Handling Defaults 2m
- Compound assignment operators 0m
- Demo: Compound assignment operators 2m
- Updating with Sub-Query Values 0m
- Demo: Updating with Sub-Query Values 3m
- Updating Views 1m
- Demo: Updating Views 3m
- Module Introduction 1m
- MERGE 1m
- Demo: MERGE 6m
- Data Modifications with CTEs 1m
- Demo: Data Modifications with CTES 2m
- Updating Large-Value Data Types 1m
- Demo: Updating Large-Value Data Types 3m
- Minimal Logging Operations 1m
- Referencing Sequence Objects 1m
- Demo: Referencing Sequence Objects 3m
- OUTPUT Clause 0m
- Demo: OUTPUT Clause 3m
- Consistent Data Type Usage 1m
- Batching Modifications with TOP 1m
- Demo: Batching Modifications with TOP 3m
- Explicit Transactions 1m
- Demo: Using Explicit Transactions 2m
- @@ROWCOUNT and ROWCOUNT_BIG 1m
- Error Handling 0m
- Demo: Error Handling 2m
- Course Summary 1m