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

  Better software tool internet explorer or mozilla firefox

There are several Internet browsers available today, and many people select which to use without giving it consideration. Explain which is better software tool: Internet Explorer, Mozilla Firefox, or Google Chrome?

  You are to design and develop three html5 pages

You are to design and develop three HTML5 pages themed on Manchester. The pages should be optimised for delivery on a tablet, and should contain the following:

  Explain difference between windowlistener and windowadapter

Explain the difference between the WindowListener interface and the WindowAdapter.

  When deleting elements from a hash table with linear probing

When deleting elements from a hash table with linear probing, a special marker needs to be inserted in place of each deleted elements. Give an algorithm to perform deletion without the use of a special marker.

  Determine maximum number of telephones end office support

With mean call duration of six minutes. Ten percent of calls are long distance. Determine the maximum number of telephones an end office can support?

  What decimal number does the bit pattern

What decimal number does the bit pattern 0x0C000000 represent if it is a floating point number? Use the IEEE 754 standard.

  Compare and contrast the binary search trees

Compare and contrast the Binary Search Trees (BST) featuring the balancing operation implemented with the AVL trees.

  What are the drawbacks of your changes?

Describe what changes could be made to an operating to break the conditions of non-preemption and hold and wait for deadlock prevention. What are the drawbacks of your changes?

  Explaining binary normalization shift-and-subtract

Convert input arguments to binary. Binary normalization shift-and-subtract.

  Define a class called counter

The only method that can set the counter is the one that sets it to zero. Write a program to test your class definition. (Hint: you need only one instance variable).

  The board game scrabble

The board game Scrabble works by assigning points to wooden tiles that are marked with printed letters, and are arranged as interlocking words on a Scrabble board.

  Explain traffic control devices to alert drivers

Are all intersections located safely with respect to horizontal and vertical alignment? Where intersections happen at end of high-speed environments (e.g., at approaches to towns); are there traffic control devices to alert drivers?

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