Dropping a Primary Key

Drop a primary key to specify no column or columns whose values uniquely identify a row in a table.

Prerequisites 

Before you can drop a primary key, be sure that the data server is running, and 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 navigation tree for the appropriate database and schema owner.
    Database Steps
    From an ASE connection profile
    1. Expand the Databases folder.
    2. Expand the tree for a database and then the tree for the appropriate schema owner.
    From a SQL Anywhere or Sybase IQ connection profile
    1. Expand the tree for a database.
    2. Expand the Schemas folder and then the tree for the appropriate schema owner.
  2. Expand the Tables folder and then expand the table that contains the primary key you want to drop.
  3. Expand the Primary Key folder.
  4. Right-click the primary key, and choose Drop.
Related concepts
Primary Keys
Related tasks
Creating a Primary Key
Editing a Primary Key


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