Assignment05_SQL_Automation
Assignment05_SQL_Automation
Assignment 05
Automation
Module Overview
In this module, you learn about automating tasks to run on a predefined schedule using SQL Server Agent and Windows
Scheduler.
Required Software
SQL Developer Edition (or equivalent)
Report Builder
Assignment Videos
Please watch the following assignment videos. You can watch them all at once, but I recommend watching a few,
changing to a different task, like reading, and then watching a few more.
https://youtube.com/playlist?list=PLfycUyp06LG8bKCdWgJEkP9xdlTlARvZ6
Assignment Articles
Please read the following documents:
https://www.sqlshack.com/introduction-to-the-sql-server-agent/
https://www.sqlshack.com/multiple-methods-for-scheduling-a-sql-server-backup-automatically/
https://www.sqlshack.com/automate-sql-database-backups-using-maintenance-plans/
https://www.mssqltips.com/sqlservertip/5019/sql-server-agent-job-schedule-reporting/
Notes:
You do not need to perform any of the demos are labs in these articles
Assignment Tasks
In this assignment's tasks, you will create two SSIS projects. The first project will simply execute a set of provided ETL
stored procedures using SSIS Execute SQL tasks. The second project will import file data into a SQL server database using
more advanced features of SSIS.
1. Open, review, and execute the script, 1_Assignment03SourceDatabase.sql to create the source database.
2. Review the metadata worksheet, 2_Assignment03MetadataWorksheet.xlsx.
3. Open, review, and execute the script 3_Assignment03DWDatabase.sql. to create the destination.
4. Open, review, and execute the script 4_Assignment03ETL.sql to create an ETL process.
1|Page
(SQL – Level 3 – Non-relational SQL Server Features and Tools)
Tips: Remember to check the SQL Server Connection if you are using a named instance
2. Create a SQL Server agent automation job to execute the package each day at 1:00 AM.
3. Create a SQL script so that the job can be created on another computer.
2|Page
(SQL – Level 3 – Non-relational SQL Server Features and Tools)
Please use an MS Word compatible editor and save your files as either a doc or docx file. Then, place it in the Document
folder of your Visual Studio Solution (Make sure to Save All).
You only need about a few paragraphs, though you can do more if you want. Make sure there are an introduction, a
summary, and one or more topic paragraphs.
Note: Make sure you put it in the proper, professional-level formatting! It does not have to be perfect, but you won't get
credit for turning in a simple blob of text! Use this link to understand what I am looking for: Creating Professional
Documents (External Site)
Important: Make sure to click the Save-All button in Visual Studio when you are done!
You’re done!
3|Page