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

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

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