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

  Different types of information systems software

Demonstrate problem-solving skills by identifying and resolving issues relating to information systems and their components, and proficiently utilise different types of information systems software

  Describe a business scenario

Constraints Business Scenario: Describe a business scenario and specify the types of constraints that would be appropriate to ensure the integrity of the database. Be sure to include every constraint discussed .

  Prove that the decomposition of r into r1 and r2 is lossless

Let R be a relation schema with a set F of FDs. Prove that the decomposition of R into R1 and R2 is lossless-join if and only if F+ contains R1 ∩ R2 → R1 or R1 ∩ R2 → R2.

  Create the star schema for the data warehouse

Develop a specific and detailed discussion about the ETL process is to be used to move data from the OLTP environment to the data warehouse - Create a star schema and the DDL to create the Star schema for the data warehouse.

  How to prepare queries to retrieve the information

How to prepare queries to retrieve the information you need from a database

  Create a database design - relational data model

Create a database design specification Enhanced Entity Relationship Diagram (EERD) and Relational Data Model from the given business description - Database Management System

  Determine the names of all tracks from table

All primary keys are underlined. All foreign keys have same name as primary key that they are referencing. Determine the names of all Tracks which are more than 10 minutes (600,000 ms) long.

  Cover topic of usability in the field of interface design

Use the Internet to locate two articles that cover the topic of universal usability in the field of interface design. Be prepared to discuss.

  Build an uml model in microsoft visio

Neatness of your diagram, please use the concepts of model, package, and sub-system well in the Visio model. Create both your diagrams under the static model from the model explorer in Visio.

  A company makes use of a computerised flat file information

a company makes use of a computerised flat file information retrieval and storage system. the company is experiencing

  Define a structural model

Define a structural model. Why should a systems analyst create one? Give an example of class cohesion for a class named SUPPLIER for your example that supplies car parts. List some of its attributes and at least two OPERATIONS (methods) that would..

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