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

  Describe the process of normalization and why it is needed

Describe the process of normalization and why it is needed. Contrast and compare logical and physical database design. Critique SQL as a user-friendly query language.

  Create a data dictionary for a simple database

Create a data dictionary for a simple database. Develop an ER diagram. Clearly label all entities, primary and foreign keys, relationship, connectivity and cardinalities.

  Create a database in an sql server

Create a database in an SQL server, and translate this design into SQL server tables with appropriate fields. The data types above are general types

  What kind of a design would you try in this case

Suppose that your database system has very ine?cient implementations of index structures. What kind of a design would you try in this case?

  Create an e-r diagram of entities, attributes & relationship

Using the script file below to create an E-R diagram of the entities, attributes and relationship.

  Analysis of data modeling and database design

Analysis of Data Modeling and Database Design -As part of this exercise, you have been approached to investigate the possible data model designs for a new MIS (Management Information System) and produce a written report

  System requirements document for course-planning

Requirements Document for Course-Planning - The Administration performs following functions like managing Professors and managing Students and managing Subjects and managing Streams and managing Schedule

  Create a data warehouse conceptual design

Create a Data Warehouse conceptual design using Star Schema Modelling and document all steps during the design process

  Define relational databases

In this Discussion Board, you are asked to define and describe background information of a relational database. Include the following information.

  Developing a use case diagram

Developing activity diagrams. (Please note that for the use case, "Buy Items", there are two scenarios, namely, "General public customer buys items" and "Contractor customer buys items". You should develop an activity diagram for each of the..

  Identify why health care delivery systems might be affected

Finally compare and contrast health informatics and health information systems.

  Map the eer schema into a set of relations

Map the EER schema into a set of relations. For the VEHICLE to CAR/ TRUCK/ SUV generalization, consider the four options presented

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