EBK DATABASE CONCEPTS
EBK DATABASE CONCEPTS
7th Edition
ISBN: 9780133544886
Author: AUER
Publisher: PEARSON CUSTOM PUB.(CONSIGNMENT)
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 6, Problem 6.50E

A.

Explanation of Solution

“Yes”, SQL server supports both locking such as optimistic and pessimistic.

Reason:

The SQL server supports the optimistic and pessimistic locks.

Optimistic lock:

  • Multiple users can update the data and it gets lock after the transaction has been processed in optimistic lock. It can be used for web applications.
  • There is no conflict occur during transaction. If conflict occurs then it can be repeated until no conflict.
  • There is no need to lock the database resources and it prevents database from deadlocks.
  • The disadvantage is that it allows the applications from selecting and modifying the same data...

B.

Explanation of Solution

Transaction Isolation Level:

The transaction isolation level gives the measure of the extent to which transaction isolation succeeds.

  • This process is defined by the presence or the absence of the phenomena such as dirty read, nonrepeatable reads, and phantom read.
  • These problems occur when we read data from the database.

There are four levels of transactions. They are,

  • Read uncommitted isolation level
  • Read committed isolation level
  • Repeatable reads isolation level
  • Serializable isolation level

Read uncommitted isolation level:

Read uncommitted isolation level is the lowest isolation level which allows dirty reads, nonrepeatable reads, and phantom reads.

  • It makes the transaction to read any data currently on a data page irrespective of the data has been committed.
  • The uncommitted read isolation level applies to read-only operations like SELECT, SELECT INTO, and FETCH.
  • The uncommitted read should not be applied for the cases where the answer must be accurate.
  • The uncommitted read does affect other transactions.

Read committed Isolation level:

Read committed Isolation level allows nonrepeatable reads and phantom reads but it prevents dirty read...

C.

Explanation of Solution

Cursor:

The term cursor is used to retrieve the information in row by row manner. If the records stored in the database table, which needs to be updated one row at a time is carried over by cursor.

  • It plays the major role for fetching a required row from the table in the database which holds numerous records.
  • Cursors are defined using SELECT statement.
  • It points the set of rows which is resulted from an SQL SELECT statement.
  • In general the cursor is placed in the first or last row.
  • It influences the performance of the SQL Server as it uses the SQL server instances memory, decrease network bandwidth, and reduction in concurrency.
  • It’s recommended to avoid the use of cursor and the cursor can be replaced with WHILE loop, temporary tables, and sub queries.
  • The types of cursor are listed below:
    • Forward-only cursor
    • Static cursor
    • Dynamic cursor
    • Keyset cursor

Forward-only cursor:

Forward-only cursor is used for fastest retrieval of data from the database. It is the fastest cursor among all the cursors but with the drawback it does not support backward scrolling.

  • Data deletion, updating the data can be done using the Forward-Only cursor.
  • It is sensitive as any changes made in the database will affect the original data source...

D.

Explanation of Solution

Difference between Security model for SQL server and figure 6-16:

Note: Refer Figure 6-16 in textbook: “A model of DBMS security”

Security model for SQL server Security model for database Management system
It provides the security architecture to permit the database developer to make secure database application and counter threats. It provides the information security control measures to protect data stored in the database or any other database applications.
It contains the hierarchical set of entities with server. Each and every server contains multiple databases, and each and every database contains set of securable objects...

E.

Explanation of Solution

Types of SQL server backup:

There are different types of SQL server backups. They are,

  • Full backup
  • Differential backup
  • Transaction log backup
  • Database file and Filegroup backups

Full backup:

The full backup in SQL server is simple type of backup which does not depends on recovery model.

  • It backs up the any type of activity during the backup.
  • It backs up any type of uncommitted transactions in transaction log file.

Differential backup:

The differential backup helps to reduce the time for restoring the modified database.

  • It backs up the portion of database that have modified since final full database backup.
  • It backs up any type of activity during differential backup and also any type of uncommitted transactions in transaction log file...

F.

Explanation of Solution

SQL server recovery models:

There are three different types of recovery models in SQL server. They are,

  • Simple
  • Full
  • Bulk-logged

Simple:

Simple recovery model helps to maintains smallest quantity of information in transaction log.

  • Simple recovery model restores the data from full or differential backups. It requires less administration power and easy to manage than full or bulk-logged model.
  • It expense high data loss when data file damages occurs.
  • The benefits allows the high-performance copy operation.
  • The drawback of the simple model is changes because database or differential backup must need to be rebuild...

Blurred answer
Students have asked these similar questions
Please answer the JAVA OOP Programming Assignment scenario below: Patriot Ships is a new cruise line company which has a fleet of 10 cruise ships, each with a capacity of 300 passengers. To manage its operations efficiently, the company is looking for a program that can help track its fleet, manage bookings, and calculate revenue for each cruise. Each cruise is tracked by a Cruise Identifier (must be 5 characters long), cruise route (e.g. Miami to Nassau), and ticket price. The program should also track how many tickets have been sold for each cruise. Create an object-oriented solution with a menu that allows a user to select one of the following options: 1. Create Cruise – This option allows a user to create a new cruise by entering all necessary details (Cruise ID, route, ticket price). If the maximum number of cruises has already been created, display an error message. 2. Search Cruise – This option allows to search a cruise by the user provided cruise ID. 3. Remove Cruise – This op…
23 } 24 ain.cpp // Tasks: C tot Shore Run Task 1: Create a class "Student" with attributes name, age, and grade. Add methods to set and get these values. Task 2: Implement a class "BankAccount" with deposit and withdraw methods, ensuring balance does not go negative. Task 3: Develop a class "Circle" that calculates its area and circumference given the radius. Task 4: Implement a class "Book" that stores title, author, and price, and allows updating and displaying book details
42 व 2 = 16 25 32-5 Subnetting = 27 Problem 8 Number of needed subnets 5 Network Address 172.50.0.0/27 Address class B Default subnet mask 255.255.0. . Custom subnet mask 255.255.255.229 Total number of subnets Total number of host addresses Number of usable addresses Number of bits borrowed 3 8122 8120 What is the 4th subnet range? What is the subnet number for the 5th subnet? What is the subnet broadcast address for the 6th subnet? What are the assignable addresses for the 3rd subnet?
Knowledge Booster
Background pattern image
Computer Engineering
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Text book image
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Text book image
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Text book image
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Text book image
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Text book image
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY