Perform a transaction log backup of the retailsales

Assignment Help PL-SQL Programming
Reference no: EM133268676

Assignment Lab 1:

Open a new Query in SSMS and issue the following statements. Pay attention to the inline comments.

-- Just making sure that the database doesn't currently exist
-- If the databases do not currently exist, the following lines should post an error
-- Run the drop commands first before you do anything else.

Assignment Lab 2:

Exercise 1: Create a SQL Server Agent Job

Task 2: Create a Backup Job

Add a Transact-SQL step that runs in the HumanResources database and executes the following command. The output from the command should be saved as a text file in the D:\ folder:

BACKUP DATABASE HumanResources TO DISK = 'D:\HumanResources.bak';

Take a screenshot after the above command runs.

Transact-SQL:

Time to add more lines to our RetailSales database.

Lastly, add a line, with customer number 888 for yourself. Use your first and last name but ensure that you make afake address.

Design a T-SQL statement that displays only the lines you have entered for this assignment.

Exercise 1: Configuring Database Mail

Task 3: Test Database Mail

1. Send a test email message from the Database Mail service
2. Verify that the test email message is successfully delivered to the C:\inetpub\mailroot\Drop folder.

Take a screenshot of the Drop folder showing the email successfully delivered.

T-SQL Statement:

More Project Work! We will be adding data into the Products and Transactions tables.

Add the following transactions into the transaction table. (No syntax for you this time...)

Before you put in the transactions though, we are going to modify the Transactions table to remove a column.

ALTER TABLE Ottawa.Transactions DROP COLUMN Description;
GO

This change was made after some discussion about usefulness of the description column, and it is less typing for you to put the information into the transaction table. Have fun!

Once all the above data has been put into the Products and Transactions table, create a query that only lists the information that you have put in above (as in, don't include the table information that you put in as part of Assignment 5).

PART 4

Introduction
This project will test your knowledge on the labs that you have completed in this course. You will work with the database you created in Part 1, making modifications as necessary. Ensure that you first completed part 1, 2 and 3 in their entirety before you begin this final project. In addition, before you begin, please ensure that you verify the information that is your RetailSales database, and re-run SQL commands as necessary.

Query

• Run a query that display the contents of all tables (do four separate queries)
o Take a screenshot
• Run a query that displays only the first 5 lines of the Customers table
o Take a screenshot
• Run a query that displays the last line in the Suppliers table
o Take a screenshot
• Run a query that displays the names of the four tables that you created in the RetailSales database
o Take a screenshot

Backup

• Perform a Full backup of the RetailSales database
o Take a screenshot that displays the size of the RetailSales database backup
o Note: You can either run an SQL query on the size of the backup or take a screenshot of File Explorer showing the file size.

Backup (Revisited)

• Perform a transaction log backup of the RetailSales database
o Take a screenshot showing the size of the transaction log backup

Query

• Run a query displaying the last line entered of each table
o Take a screenshot for each query

Security

• Create a dynamic display mask that hides the Customer Phone Numbers in the Customers table
• Encrypt the Cost field in the Products table
• Create a dynamic display mask that hides the address information in the Suppliers table

Query

• Run a query that shows the information in the Customers table has been masked
o Take a screenshot
o Note: Do not show me the unmasked data
• Run a query showing that the cost field in the Products table has been encrypted
o Take a screenshot
• Run a query showing that the Suppliers address information is masked
o Take a screenshot
o Note: Do not show me the unmasked data

Attachment:- Configuring Database Mail.rar

Reference no: EM133268676

Questions Cloud

What value or ethical dilemma in the case study stood out : What value or ethical dilemma IN THE CASE STUDY stood out for you? Thinking about this, can you connect to an ethical dilemma
Technological improvement existed in economy : Assume that technological improvement existed in the economy during 1990s, holding capital per worker (K/L) constant.
Perform a vrin analysis on mcdonalds technology : Perform a VRIN analysis on McDonalds technology development, infrastructure, procurement and Human Resources.
Divulge all details of compensation : Are CEOs entitled to increases in compensation when their company's financial situation worsens, because their job becomes more challenging?
Perform a transaction log backup of the retailsales : Perform a transaction log backup of the RetailSales database and Create a dynamic display mask that hides the Customer Phone Numbers in the Customers
What is the importance of gerontological nurses association : What is the importance of Gerontological nurses' association? What is the importance of networking and networking opportunities in geriatric nursing
Fight for social justice and economic equality : How might unions and the Labor Movement help fight for social justice and economic equality?
Pursue the international market : If In-N-Out Burger decides to pursue the International Market that you recommended above.
How has provided success to the business : Describe in detail Tesla Inc. use of harwarde and software within the business. What types of software do they use? What hardware do they use?

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Prepare sql queries to find the customers

Prepare SQL queries to find the customers who have reserved only 4-door cars.

  Display all product columns for products

Display all product columns for products that are red and black and have a list price greater than or equal to $400 and less than or equal to $800. Use the keywords BETWEEN and IN.

  Write sql query that you would use to search for any books

Write an SQL query that you would use to search for any books by J.J. Parsons in a table called BOOKS, where author's names are stored in a field called Title.

  Question 1 given the series rlc resonant circuit in the

question 1 given the series rlc resonant circuit in the figure operating at variable frequency determinenbspa. the

  Compare and interpret test results

M6A2 Lab: Interpret Static Analysis Reports. In this activity, you will compare and interpret test results using the Fortify On Demand Tool

  Create report to display scr courses in alphabetical order

Create the detail report which will display all SCR courses in alphabetical order, with a course name and instructor name in the group header.

  Undertake practical database application development work

Undertake practical database application development work to meet specified requirements and write a reflective report that evaluates the quality of your work

  Analyze your experiences related to your setup of mysql

Analyze your experiences related to your setup of MySQL. Include any difficulties or issues that you had encountered during the installation.

  Create a script file containing the pl/sql code

For the lab, you will need to create a script file containing the PL/SQL code that will address the lab steps below. Run the script file in your SQL*Plus session using the SET ECHO ON session command at the beginning to capture both the PL/SQL blo..

  Create the script to create the ms sql table

Create the script to create the MS SQL table, Create the script to create a store procedure, Create c# script that connect to the store procedure named MosaicVisitsDB.CS

  Assignment related to sql programming

Define a one-to-many relationship between the Customer table and Orders table. Right click in the window and select Show table. Select the referential integrity option and both cascade options for the relationships. Save the relationship.

  What could the mds that violate 4nf be

Let's define the rating of a director to be the average rating of all his/her movies. Find the names and ratings of all directors who have directed movies starring Al Pacino.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd