A Guide to SQL, Ninth Edition Page 8–9
Inserting Data with Visual Basic
2. Create the appropriate INSERT command in the string SQL variable. The procedure
will have multiple arguments, one for each value to be inserted.
Finding Multiple Rows with Visual Basic
1. When several rows are returned as a result of a SELECT statement, Visual Basic has a
problem handling multiple rows.
3. Use Figure 8-33to show the results of running the code.
4. Mention the Note on page 257.
Using a Trigger
1. Define trigger. A trigger is a procedure that executes automatically in response to an
associated database operation, such as the INSERT, UPDATE, or DELETE commands.
3. To create a trigger, use the CREATE TRIGGER command.
5. Use Figure 8-35 to illustrate creating a trigger that executes after a user updates an order
line.
7. Use Figure 8-36 to illustrate creating a trigger that executes after a user deletes an order
line.
9. Review the T-SQL code to create and use a trigger in the SQL Server Note on page 259.
10. SQL Server uses INSERTED and DELETED system tables to store new values and old
values.
Quick Quiz 3
1. A _____ is a pointer to a row in the collection of rows retrieved by an SQL command.
2. A(n) _____ is a procedure that executes automatically in response to an associated
database operation, such as INSERT, UPDATE, or DELETE command.