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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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