Next / Previous / Index / ITC Help System / Publications / Site map / NM Tech homepage

Creating a Sybase transaction

Tech Computer Center logo

At the end of each command press the space-bar or press enter before continuing the next step.

  1. To create a transaction, type
            begin tran
  2. Type
  3. Press enter.

If everything goes well, you see the database prompt (a period, the name of the database you are using, another period, the number one and then the greater than symbol).

After you have created a transaction, you can do your work like normal, with a few exceptions. For example, you cannot create or delete a table or a database.

If you see something like

        Msg 2762, Level 16, State 4
        Server '', Line 1
        The 'DROP TABLE' command is not allowed within a
           multi-statement transaction in the 'pubs2' database.
you have tried to do a command that is not allowed in a transaction. You must commit the transaction to do that command.
Next: Undoing a Sybase transaction
See also: Sybase transactions: preventing lost data
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Information Technology and Communications: Help System
ITC Publications
To report a problem: File a ticket
Send mail to the User consultant on duty or call them at 575-835-5437
Home: About New Mexico Tech

Maintained by John Shipman,; original by Steve Anderson
Last updated: 1997/06/23 22:46:33 UT
QR two-dimensional bar code