Database Concepts (8th Edition)
Database Concepts (8th Edition)
8th Edition
ISBN: 9780134601533
Author: David M. Kroenke, David J. Auer, Scott L. Vandenberg, Robert C. Yoder
Publisher: PEARSON
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
If you have access to SQL Server, search its help system to answer the following questions. A. Does SQL Server support both optimistic and pessimistic locking? B. What levels of transaction isolation are available? C. What types of cursors, if any, does SQL Server use? D. How does the security model for SQL Server differ from that shown in Figure 6-16? E. Summarize the types of SQL Server backup. F. Summarize the SQL Server recovery models.
What are the  precautions to be taken in order to prevent SQL injection attacks  ?
So then, what is database security? How do you keep your database safe by using two methods?
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Cengage Learning
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr