Editing a Default

Edit a database default to change the default value specified to insert in a column (or in all columns of a user-defined datatype) if no value is explicitly supplied at insert time.

Prerequisites 

Before you can edit a default, be sure that the data server that contains the default is running and that you created and established a connection to the data server.

  1. In the Databases folder in Enterprise Explorer, under the database connection profile, expand the Databases folder, and then expand the tree for a database and then the tree for the appropriate schema owner.
  2. Under the Defaults folder, find the default you want to edit.
  3. Right-click the default, and choose Edit.
  4. Change the name of the default.
    Table 1. General tab options
    Field Description
    Name Specify a name for the default.
    Default Expression Displays the default constant expression.
  5. View the DDL for the default in the DDL tab.
  6. When you finish editing the default, close the Default Editor page and save your results.
Sybase WorkSpace executes the DDL to change the default and reports results to the console.
Related tasks
Creating a Default
Dropping a Default
Renaming a Default


Created June 25, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com