• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/8

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

8 Cards in this Set

  • Front
  • Back
Web applications can implement transactions by using methods that do three things?


(a) initiate a transaction, (b) commit the transaction, or (c) revert the transaction back to the original state of the database.
In many database languages, the formal statements are?
BEGIN TRANSACTION, COMMIT, or ROLLBACK.
In MS Access , the statements are ?
AcceptChanges() or RejectChanges() of a Dataset.
e following are the three functions in .NET that can be used in a transaction:
BeginTrans starts a new transaction.CommitTrans saves changes and completes the current transaction.RollbackTrans cancels any changes during the current transaction and ends the transaction.

What are triggers?

Triggers are merely events that occur on the database that, when invoked, cause an action to occur, such as "Save the record plus UserID and DateTime to another table."

How do you implement a trigger?

To implement a trigger, run the code as a query in the database only once. From then on, the trigger will exist. An example of a trigger implemented on a database is as follows:
Here is an example of the use of a trigger to save the entire tblPerson record into a tblLog table along with the UserID and DateTime of the transaction when the record is updated.
CREATE TRIGGER trgInsertON tblPersonFOR INSERTASINSERT INTO tblLog(USERNAME, FName, LName, Address, City, State, Zip, Now())VALUES(USERNAME, 'Dan', 'Parrell', '920 Cross Street', 'Oxford', 'Michigan', '48371')

What is the final way to manage the transactions

A final way to manage transactions is to implement and use the database's transaction log file.