RelationalDBDesign
SiteMap
Business Rules
Cursors Views
Database Creation
SQL Monitoring
Database Web Apps
Data Manipulation
Access Features
Building Access DB
SQL-Server Triggers
«Prev
Next»
Business Rules
Transaction Locking
Define Transactions
Three Transactions Modes
Define Isolation Levels
Identify Nested Transactions
Transaction Isolation - Quiz
Optimistic Pessimistic Locking
Deadlock Transaction Blocking
Avoid Server Deadlocks
Commit Rollback Transaction
Manage Distributed Tx
Error Handling Testing
Transaction Locking Conclusion
Server Interaction
Assign Use Variables
SQL Server Functions
SQL Function Statements
Date Time Functions
Reporting Errors
SQL Raising Errors
Programming Concepts Conclusion
SQL-Server Triggers
Trigger SQL Server Utility
Three Trigger Types
Enforcing Business Rules
Creating SQL Triggers
Practice Creating Triggers
Creating Triggers - Exercise
Implementing SQL-Server-Triggers
Modifying Triggers
Deleting SQL-Server Triggers
Testing SQL-Server Trigger
SQL Trigger Conclusion
SQL Triggers-Quiz
Stored Procedures
What is SP
Enforcing Business Rules
Creating SP
User Defined SP
Stored Procedures - Exercise
Modifying Procedures
Deleting Stored Procedures
System Extended SP
Error Handling
Using Output Parameters
Executing Stored Procedures
Testing Stored Procedures
Different SP Conclusion
Stored Procedure - Quiz
Accessing Remote Data
Enterprise Manager Server
Adding Remote Login
SQL-Server Triggers - Quiz
Each question is worth one point. Select the best answer for each question.
1.
By default, how many levels can triggers be nested?
Please select the best answer.
A.
1
B.
32
C.
16
D.
Zero; they cannot be nested.
2.
When does the Deleted temporary trigger table become populated?
Please select the best answer.
A.
With DELETE triggers only
B.
With DELETE and INSERT triggers
C.
With DELETE, UPDATE, and INSERT triggers
D.
With DELETE and UPDATE triggers
3.
John creates a trigger on the Sales table. He is trying to enforce the business rule that no order can be created (inserted) with a total less than $20. However, it can be updated by a supervisor, if necessary. What must his code do to the Sales table if the test inside the trigger tries to insert an order with a total of $15?
Please select the best answer.
A.
Delete the row from the Inserted table.
B.
Delete the row from the Sales table.
C.
Do nothing; the trigger will do it automatically.
D.
Delete the row from both the Inserted and the Sales tables.
4.
If you insert data into the Category table that has an INSERT trigger on it, what happens to the data when the trigger fires?
Please select the best answer.
A.
The data resides in the Inserted and the Category tables.
B.
The data resides in only the Inserted table.
C.
The data resides in only the Category table.
D.
The data resides in the Inserted and Deleted tables.
5.
If you delete data from the Category table that has a DELETE trigger on it, what happens to the data when the trigger fires?
Please select the best answer.
A.
The data resides in the Deleted table and is removed from the Category table.
B.
The data resides in the Inserted and Deleted tables.
C.
The data is deleted from the Category table only.
D.
The data resides in only the Deleted table.
Correct answers:
Your Score: 0
Submit
Quiz Explanation