Concept explainers
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 |
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...
Want to see the full answer?
Check out a sample textbook solutionChapter 6 Solutions
Database Concepts (8th Edition)
- Please original work select a topic related to architectures or infrastructures (Data Lakehouse Architecture). Discussing how you would implement your chosen topic in a data warehouse project Please cite in text references and add weblinksarrow_forwardPlease original work What topic would be related to architectures or infrastructures. How you would implement your chosen topic in a data warehouse project. Please cite in text references and add weblinksarrow_forwardWhat is cloud computing and why do we use it? Give one of your friends with your answer.arrow_forward
- What are triggers and how do you invoke them on demand? Give one reference with your answer.arrow_forwardDiscuss with appropriate examples the types of relationships in a database. Give one reference with your answer.arrow_forwardDetermine the velocity error constant (k,) for the system shown. + R(s)- K G(s) where: K=1.6 A(s+B) G(s) = as²+bs C(s) where: A 14, B =3, a =6. and b =10arrow_forward
- • Solve the problem (pls refer to the inserted image)arrow_forwardWrite .php file that saves car booking and displays feedback. There are 2 buttons, which are <Book it> <Select a date>. <Select a date> button gets an input from the user, start date and an end date. Book it button can be pressed only if the start date and ending date are chosen by the user. If successful, it books cars for specific dates, with bookings saved. Booking should be in the .json file which contains all the bookings, and have the following information: Start Date. End Date. User Email. Car ID. If the car is already booked for the selected period, a failure message should be displayed, along with a button to return to the homepage. In the booking.json file, if the Car ID and start date and end date matches, it fails Use AJAX: Save bookings and display feedback without page refresh, using a custom modal (not alert).arrow_forwardWrite .php file with the html that saves car booking and displays feedback. Booking should be in the .json file which contains all the bookings, and have the following information: Start Date. End Date. User Email. Car ID. There are 2 buttons, which are <Book it> <Select a date> Book it button can be pressed only if the start date and ending date are chosen by the user. If successful, book cars for specific dates, with bookings saved. If the car is already booked for the selected period, a failure message should be displayed, along with a button to return to the homepage. Use AJAX: Save bookings and display feedback without page refresh, using a custom modal (not alert). And then add an additional feature that only free dates are selectable (e.g., calendar view).arrow_forward
- • Solve the problem (pls refer to the inserted image) and create line graph.arrow_forwardwho started the world wide webarrow_forwardQuestion No 1: (Topic: Systems for collaboration and social business The information systems function in business) How does Porter's competitive forces model help companies develop competitive strategies using information systems? • List and describe four competitive strategies enabled by information systems that firms can pursue. • Describe how information systems can support each of these competitive strategies and give examples.arrow_forward
- Database Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781305627482Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781285196145Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos CoronelPublisher:Cengage LearningA Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology Ptr