
Learn how to use T-SQL variables in SQL Server, including local and global variables, declare with @, set or select to assign values, and print results via AdventureWorks examples.
This lecture introduces the SQL Server waitfor command, showing how to pause execution with wait for time or wait for delay in stored procedures and jobs.
Master the while loop in SQL Server, using break and continue to control iteration, and apply practical T-SQL scripting techniques discussed in the course.
Learn to build two dependent T-SQL jobs in SQL Server Agent: start a backup script, wait for it to finish using sp_start_job and job history, then trigger the cleanup job.
Generate a script to change the database owner to sa across multiple databases. Filter online databases where the owner is not sa and apply the change with alter authorization.
Generate a script to change the recovery model for multiple databases in SQL Server, using print statements and a where clause to exclude system databases.
Learn SQL Server error handling with try/catch, throw, and raiserror. Enforce rules and log errors by displaying messages when salaries exceed set limits.
Understand set xact abort and exit abort in t-sql, and how runtime errors roll back the entire transaction. See a practical begin transaction, try-catch, and rollback demonstration.
Welcome to the course for "T-SQL Programming and Scripting For SQL DBA and Developer". In this course you will get in depth knowledge from Basic to Advance of T-SQL Programming and Scripting. You are going to learn how to developed and start writing the T-SQL Programing which will going to use in SQL Server. Basically this course has been divided in to multiple of session which include the Basic and advance coding. Even you will find the other additional session, Which will be the subcategory of the main course. For Sub-category you have to go through each module of the video. After completing the Each video session you will able to download the Script do the practice by your self.
I am going to discuss each and every Scripts which has beet attached. I will be frequently uploading the video and you will get life time access to this curse. For doubt clarification I will provide all details at the end of this course so you can connect with me.
This course has been designed in such a way that any one having the basic knowledge of SQL Server can easy learn and develop the T-SQL Programming and scripting for SQL Server. This Course is going to help for SQL DBA and SQL Server Developer.