Creates a user-defined database role named paymententry

Assignment Help Database Management System
Reference no: EM131067003

1. Write a script that creates a user-defined database role named PaymentEntry in the AP database. Give UPDATE permission to the new role for the Invoices table, UPDATE and INSERT permission for the InvoiceLineItems table, and SELECT permission for all user tables.

2. Write a script that (1) creates a login ID named "AAaron" with the password "aaar9999"; (2) sets the default database for the login to the AP database; (3) creates a user named "Aaron" for the login; and (4) assigns the user to the PaymentEntry role you created in exercise 1.

3. Write a script that creates four login IDs based on the contents of a new table called NewLogins:

CREATE TABLE NewLogias
(LoginName varchar(128));
INSERT NewLogins
VALUES (113Brown,), ('CChaplin,), ('DDyer'), ('EEbbers');

Use dynamic SQL and a cursor to perform four actions for each row in this table: (1) create a login with a temporary password based on the first four letters of the login name followed by "9999"; (2) set the default database to the AP database; (3) create a user for the login with the same name as the login; and (4) assign the user to the PaymentEntry role you created in exercise 1.

4. Using the Management Studio, create a login ID named "FFalk" with the password "ffa19999," and set the default database to the AP database. Then, grant the login ID access to the AP database, create a user for the login ID named "FFalk", and assign the user to the PaymentEntry role you created in exercise 1.
Note: If you get an error that says "The MUST_CHANGE option is not supported", you can deselect the "Enforce password policy" option for the login ID.

5. Write a script that removes the user-defined database role named PaymentEntry. (Hint: This script should begin by removing all users from this role.)

6. Write a script that (1) creates a schema named Admin, (2) transfers the table named ContactUpdates from the dbo schema to the Admin schema, (3) assigns the Admin schema as the default schema for the user named Aaron that you created in exercise 2, and (4) grants all standard privileges except for REFERENCES and ALTER to AAaron for the Admin schema.

Attachment:- CreateMyGuitarShop.rar

Reference no: EM131067003

Questions Cloud

Estimate probability distributions for the four factors : The percentage of people who will reply to the reminder in each of the three regions.
Forceful projection of petrescent missiles : "Hominans habitating vitreous domiciles should refrain from the forceful projection of petrescent missiles." In this cliche, there is a construction material cited. Which construction material is it?
Find articles online that define term negative externality : Find two articles online that define the term "negative externality". Copy those definitions here and provide links to the articles. Don't just use a dictionary, find an article that explains the term.
Biggest and most lasting impact of movement : The Harlem Renaissance was a cultural movement during the 1920s. Explain the different forms of art impacted during this movement. Who was involved and what were some of the most lasting works to come out of it? What was the biggest and most lasti..
Creates a user-defined database role named paymententry : Write a script that creates a user-defined database role named PaymentEntry in the AP database. Give UPDATE permission to the new role for the Invoices table, UPDATE and INSERT permission for the InvoiceLineItems table.
Current us healthcare system : Review the health policies of each of the following countries. Then, choose a country from the following list to compare and contrast with the current U.S. healthcare system:
Find the value of x such that the volume is a maximum : Find the value of x such that the volume is a maximum.
What is albedo : What is Albedo? How does this characteristic affect the high latitudes as far as global warming is concerned?
Act effectively under pressure in calm way : Courage is the state of mind that enable one to face fear, danger, and difficulty. Some define courage as the ability to act effectively under pressure in calm way. However, I think courage is an act that separate the heroes from cowards.

Reviews

Write a Review

Database Management System Questions & Answers

  Question 1a explain the use of facts dimensions and

question 1a explain the use of facts dimensions and attributes in a star schema model.b in relation to a fact table

  How to select the primary key from the candidate keys

A motor vehicle maintenance center wants to improve its services by using database management systems and data mining what tables are needed in such a database and how can it help improve their services

  Consider the er diagram that you designed

Consider the ER diagram that you designed for the Prescriptions-R-X chain of pharmacies in Exercise 2.7. De?ne relations corresponding to the entity sets and relationship sets in your design using SQL.

  Explaining unclustered b pus tree index

Suppose you have a table which contains 27,000 data records, and you have unclustered B+ Tree Index on the table.

  How to design and create tables

Databases are powerful tools for storing, managing, manipulating, and accessing data. Most information systems in use today make use of some form of database. In this lesson you will learn about the Access user interface (UI), how to design and ..

  Decompose the table into a set of 3nf tables.

Draw a dependence diagram. There are examples in the reading assignments of dependence diagrams.

  How to change content in order for new list

To what kind of list would you change it? What would you require to change about content in order for new list type to be effective for purpose of list?

  Study on managing the software enterprise

This course is for those in a management capacity, or those interested in management, involving the strategic consideration of software acquisition, development and project management.

  Create a database diagram of the final database

Write a script to establish a foreign key constraint between EMPLOYEES and DEPARTMENTS using the common field: DepartmentID. Create a database diagram of the final database clearly depicting all tables and relationships.

  Store information about musicians who perform on its albums

REQUIREMENTS: YoTown Records has decided to store information about musicians who perform on its albums (as well as other company data) in a database

  Express the information about fred and ann

Express the information about Fred and Ann in unary facts. Draw a conceptual schema diagram based on this choice

  Use the contents of figure 1 to work problems 1-31write the

use the contents of figure 1 to work problems 1-3.1.write the business rules that govern the relationship between agent

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