Create a procedure called droplogins

Assignment Help Database Management System
Reference no: EM131473934

Question: 1. Create a procedure called "dropLogins". In this procedure, include the following code

Declare @Roles Table(DbRole varchar(20), MemberName varchar(50), MemberSID varchar(50));

insert into @Roles EXEC sp_HelpRoleMemberCustomerRole

The procedure sp_HelpRoleMember returns a table of users for the CustomerRole (see note below). The table is then inserted into a table variable called @Roles.

Declare a cursor for "select MemberName from @Roles" where MemberName has all the logins. Using the cursor and dynamic SQL, drop the member from the CustomerRole, drop the user and then drop the login.

Reference no: EM131473934

Questions Cloud

Develop your programming and problem solving skills : The objective of this assignment is to develop your programming and problem solving skills in a step-by-step manner, assisted with visualization.
What is current value : What is current value of $1,000 bond with 4% coupon rate and 4% comparable rate of interest if it matures after 10 years.
What are the annual cca deductions : What are the annual CCA deductions associated with this equipment for the first five years?
Write essay on contemporary issues in business communication : You are required to write an essay on: "Contemporary issues in professional business communication."
Create a procedure called droplogins : Create a procedure called "dropLogins". In this procedure, include the following code Declare @Roles Table(DbRole varchar(20), MemberName varchar(50), MemberSID
Create advertising and public relations objectives : Create advertising and public relations objectives that align to each one of the bank's strategic goals.
Comparable rate of interest : What is current value of $1,000 bond with 4% coupon rate and 4% comparable rate of interest if it matures after 10 years. Please show work.
Spherical marginal corporate tax rate : This equipment has a CCA rate of 25% and Spherical's marginal corporate tax rate is 35%.
What is meant by accelerating the process : What is meant by "accelerating the process"?What is the marketing objective for the growth stage of the product life cycle?

Reviews

Write a Review

Database Management System Questions & Answers

  Write short notes on erd and database file

This course utilizes the Virtual Organizations, an Apollo Group, Inc. learning tool. The Virtual Organizations portal is accessed from the link on your course materials page.

  Design a database to keep track of all the students

Describe how you would design a database to keep track of all the students at a university. describe tables, relationships, attributes, Primary Keys, Foreign Keys, Candidate Keys.

  Er diagram and database schema

To analyse and comprehend a provided ER diagram and Database Schema and implement a database based on the provided ER diagram and Database Schema

  Create the underlying database for a new point of sale

Your team has been asked by a small retail client, SmallMart, to create the underlying database for a new point of sale (POS) system.

  What difficulties did you encountered and how did you

write a 200- to 300-word short-answer response for the followingwhat difficulties did you encountered and how did you

  Write the proper sequence of activities in the design

Write the proper sequence of activities in the design of a video rental database. The initial ERD is shown in above (or refer to textbook figure 9.9). The design must support all rental activities, customer payment tracking, and employee work sche..

  Describe database backup and disaster

Describe Database Backup - 2 pages, (b) Describe Disaster Planning - 2 pages, (c) Highlight the importance of the integration of both backups and disaster planning and the impact if both are not effectively executed - 1 page.

  What amount would the company have to charge

what amount would the company have to charge for the Ericson wedding cake to just break even - what would be the overall margin on the order?

  What are the typical departments in a data center

What techniques would you use to effectively manage a team of system administrators (network, database, application, etc.) working in your data center?

  Create an erd to show the resultant tables

Normalise the table to 3NF - Use correct dependency diagram/s to show each normalisation level.

  Create a schema that supports the company business

Create a schema that supports the company's business and processes. Explain and support the database schema with relevant arguments that support the rationale for the structure

  Develop a database in ms access and support business

Customers can be friends of other customers, and view comments on wish list of their friends.

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