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
Consider the data path below for a single cycle 32-bits MIPS processor Assume that we are executing the following instruction lw St1, 48($10) What is the value of the element pointed by arrow number 1 by in hexadecimal? Note that the PC and the content of registers $10 and $t1 are found in bottom left of the figure below Data Memory Select one a. Ox00001724 Ob. 0x00002DE4 Oc 0x000016F4 Od 0x00001720 Oe. 0x00002DEO Clear my choice Rea " Address Content 0x000016EC 0x0000ABOD 0x000016F0 0x00A01245 0x000016F4 0x00001A42 0x000171C 0x0008124F 0x0001720 0x00021345 0x0001724 0x000067AB ALU Ox0001734 0x0000AB35 0x0001738 0x0000FA72 0x0000ABOC ALS 0x000174C Register File and PC $to = 0x000016FO $t1 = 0x000016F4 PC = 0x0000148A0 (Before executing LW)
Consider the data path below for a single cycle 32-bits MIPS processor Assume that we are executing the following instruction SLL S10, $3,4 What is the value of the element pointed by arrow number 1 by in hexadecimal or binary? Note that the PC and the content of registers are found in bottom left of the figure below Address Select one Oa. Ox00000000 Ob. Ob 10011' Oc 0x0000AF00 ® d. 06/01000 Oe. None of the options Of Ox000000BA LEY Content 0x000016EC Dx0000ABOD Data Memory 0x000016F0 0x00A01245 0x000016F4 0x00001A42 Ox000171C 0x0008124 0x0001720 0x00021345 0x0001724 0x000067AB 0x0001734 0x0001738 0x0000A835 0x0000FA72 0x000174C 0x0000AC $63 0x000000BA PC = 0x000FAC04 Register File and PC (Before executing SLL)
Consider the data path below for a single cycle 32-bits MIPS processor Assume that we are executing the following instruction lw $10, 48(S1) What is the value of the element pointed by arrow number 1 by in hexadecimal? Note that the PC and the content of registers $10 and $t1 are found in bottom left of the figure below Select one a. None of the options Ob 0x00014C64 Oc 0x00014CC4 Od 0x00014BA4 Oe. Ox14C1C Of 0x00014C60 Og 0x00014CCO D Data Memory Address Content 0x000016EC 0x0000ABOD 0x000016F0 0x00A01245 0x000016F4 0x00001A42 0x000171C 0x0008124F 0x0001720 0x00021345 0x0001724 0x000067AB 0x0001734 0x0000AB35 0x0001738 0x0000FA72 0x000174C 0x0000ABOC ALU Register File and PC Sto Ox000016F0 St1 = 0x000016F4 PC = 0x00014BA0 (Before executing LW).
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