tailieunhanh - The Real MTCS SQL Server 2008 Exam 70/432 Prep Kit- P133

The Real MTCS SQL Server 2008 Exam 70/432 Prep Kit- P133: Congratulations on your journey to become certified in SQL Server 2008. This book will help prepare you for your exam and give you a practical view of working with SQL Server 2008. | 642 Chapter 14 Implementing Objects trigger to fire occur within the context of a single transaction. It is possible to roll back INSERT UPDATE and DELETE statements from within a trigger. This is useful for complex data validation can use triggers to manually cascade changes through related tables to guard against malicious or incorrect insert update and delete operations and to enforce other restrictions that are more complex than those defined by using CHECK constraints. Exam Warning Triggers should be used sparingly because they have severe performance implications. In addition triggers can be difficult to maintain. Unlike CHECK constraints triggers can reference columns in other tables. For example a trigger can use a SELECT statement from another table to compare to the inserted or updated data and to perform additional actions such as modifying the data or displaying a user-defined error message. Triggers can evaluate the state of a table before and after a data modification and take actions based on that difference. Multiple triggers of the same type INSERT UPDATE or DELETE on a table allow multiple different actions to take place in response to the same modification statement. Triggers also allow the use of custom error messages. Triggers can be specified as FOR AFTER or INSTEAD trigger action will fire during the DML statement after the DML statements or in place of the DML statement respectively. Triggers can be specified for UPDATE INSERT DELETE or any combination of these. How do you know what data the user is attempting to insert update or delete within a trigger The trigger can access special tables called INSERTED and virtual tables exist only while the trigger is INSERTED table contains the new values you are attempting to insert into the table or new values of the row when you are attempting to update data. The DELETED table contains the row you are attempting to delete or old values of the row when

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.