Demonstrate the both the commit and the rollback

Assignment Help Basic Computer Science
Reference no: EM13307930

Need the procedures for these questions in qsuedo code 1. Create a stored procedure name procBookPriceUpdate that updates the price of a book based on the ISBN number as specified below. a. Create a procBookPriceUpdate stored procedure that requires the following parameters. i. ISBN ii. Price b. procBookPriceUpdate () if ISBN is invalid throw error else If Price is negative throw error else update price end The procedure must implement the following pseudo code. See pages 430 to 447 for examples. 1. Write a script to test your procedure. Demonstrate the error messages. Include select statements to verify the rows were added. 2. Create a stored procedure name procPublisherDelete that implements cascade delete of Publisher, Books, and BookAuthors based on the PublisherID. The procedure should implement a transaction and rollback any modifications if an error occurs. a. Create a procPublisherDelete stored procedure that requires the following parameters. i. PublisherID b. The procedure must implement the following pseudo code. See page 505 for transaction example. examples. procPublisherDelete() Try Begin Transaction Delete related BookAuthors Delete related Books Delete Publisher Commit Transaction Catch Rollback Transaction end a. Use the following subquery to delete BookAuthor records DELETE FROM BookAuthors WHERE BookID IN (SELECT BookID FROM Books WHERE PublisherID = @PublisherID) 2. Write a script to test your procedure. Demonstrate the both the commit and the rollback.

Reference no: EM13307930

Questions Cloud

Describe the current strategy of a division of major austral : Current Strategy, New Niche.This report will examine in detail and describe the current strategy of a division of major Australian corporation
What will be degree of consolidation reached at that time : Average pore water pressure in fully saturated clay specimien, which was subjected to a pressure of 20N/cm^2 initially, was measured to be 7N/cm^2 after a period of time.
What one characteristic about standard normal distribution : What one characteristic about the Standard Normal Distribution make it different from any normal distribution How do the standard deviation of 1 makes it diffenert. Can you plz explain? Do it some how throw the base answer off?
Compute the phase angle of the circuit : An RLC circuit is set up with a 350 mH inductor, a 6.8 mF capacitor and a 550 W resistor. What is the phase angle of the circuit
Demonstrate the both the commit and the rollback : Write a script to test your procedure. Demonstrate the both the commit and the rollback.
Calculate the heat transfer required to do quality in btu : A rigid 1ft^3 vessel contains R-134a originally at -20F and 27.7% quality. The refrigerant is then heated until its temperature is 100F. Calculate the heat transfer required to do this, in Btu.
Determine the temperature of the cold reservoir : A Carnot engine has an efficiency of 18.2%. It operates between constant-temperature reservoirs differing in temperature by 138 C °. determine the temperature of the cold reservoir
What is the emf induced in the rectangular loop : A rectangular loop of N turns and of length a and width b is rotated at a frequency f in a uniform magnetic field B. What is the emf induced in the rectangular loop
Sex education to middle age group is not good : Write 1500 to 1800 that giving sex education to middle age group is not good

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a console program that repeatedly prompts the user

Write a console program that repeatedly prompts the user to enter data until they type done (any case, Upper, Lower, or Mixed). As they enter the data

  Explain main resources in management information systems

The three main resources in management information systems (MIS) are information, information technology, and people. Which of these three resources is the most significant?

  What is the difference between coupling and cohesion

What is the difference between coupling and cohesion? Which should be minimized and which should be maximized and what complications are imposed if one tries to implement a dynamic list using a traditional homogeneous array?

  What does it mean to spawn a process?

Process can be in different states to allocate the resources better. List the symbol and meaning for each of these states. 2. What does it mean to spawn a process?

  Discuss how determining milestones might add additional

Remember that milestones normally have no duration, so you must have tasks that will lead to completing the milestone.

  Interactive java program that asks a user for some interest

Create an interactive Java program that asks a user for some text of interest and then displays the first email address found in that text. (This is the basis for one of the programs that spammers use to mine text, such as email messages, Web pages, ..

  Plot the joint pdf of two independent variables x and y

I am being asked to code this in matlab and display figures and am having trouble figuring out how to do joint pdf. If you could atleast provide the equations needed or possibly a graph example of what it should look like, it would be appreciated.

  What does cissp stand for

What does CISSP stand for? Using the internet, find out what continuing education is required for the holder of a CISSP t remain current and in good standing.

  Programmers creating program of high quality

Write down technical paper on "Our goal is to aid programmers create program of high quality - programs that reliable, efficient, and reasonably.

  Using jflap construct a turing machine

Using JFLAP construct a turing machine that does integer division for numbers in unary notation. For example your machine should execute the calculation

  Define a method hello

Define a method hello(name) which takes in a string representing a name and prints out "Hello, " followed by the name.

  True and false

A.  (True | False) In the MSP430's active mode, the MCLK and SMCLK clocks are up and running and ACLK is not running (it is turned off).

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