IBM Database Add-Ins for Visual Studio  

Creating Tables from Existing Tables

If you want to create a table that is similar to a table in your IBM® database, you can base the new table on the existing table definition.

To create a table from an existing table:

  1. In the Server Explorer under your IBM data connection, expand the Tables folder.
  2. Right-click the table that you want to use as the basis for the new table, and then select Clone Definition on the shortcut menu.

    The IBM Table Designer opens, with the information for the selected table displayed in the fields of the designer. The value in the Table name field contains an incremental numeric suffix.

  3. Change, add, or delete the information in the views of the designer to define the new table.

    For detailed information about the fields in the designer views, see IBM Table Designer.

  4. Save the table definition.

    The table is created and added to your database.

  5. Close the designer.

See Also

Developing IBM Database Tables | IBM Database Tables | Managing Procedures, Functions, and Objects


.NET Development Forum   DB2 FAQs   IDS FAQs

© Copyright IBM Corporation 2002, 2019. All Rights Reserved.