Udostępnij za pośrednictwem


How to: Create Tables

Using Table Designer, you can create a new table, name it, and add it to an existing database.

Note

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To create a new table with Table Designer

  1. Make sure you are connected to the database in which you want to create the table and that it is selected in Server Explorer.

    For more information on connecting to a database see How to: Connect to a Database from Server Explorer.

  2. From the Data menu, point to Add New and then click Table.

  3. Type column names, choose data types, and choose whether to allow nulls for each column.

  4. From the File menu, choose Save table name.

  5. In the Choose Name dialog box, type a name for the table and click OK.

See Also

Reference

Table Properties

Other Resources

Working with Tables in Table Designer

Understanding Visual Database Tools