Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Transactions [Table of Contents] Datatype
entry rules

Transact-SQL User's Guide

[-] Chapter 8 Adding, Changing, and Deleting Data
[-] Introduction
[-] Using the sample databases

Using the sample databases

If you follow the examples in this chapter, Sybase suggests that you start with a clean copy of the pubs2 or pubs3 database and return it to that state when you are finished. See a System Administrator for help in getting a clean copy of either of these databases.

You can prevent any changes you make from becoming permanent by enclosing all the statements you enter inside a transaction, and then aborting the transaction when you are finished with this chapter. For example, start the transaction by typing:

begin tran modify_pubs2

This transaction is named modify_pubs2. You can cancel the transaction at any time and return the database to the condition it was in before you began the transaction by typing:

rollback tran modify_pubs2


Transactions [Table of Contents] Datatype
entry rules