Creating Tables and Relationships

The primary entities in any database are its tables. Tables are composed of a structure and data. Server Explorer and the new SQL Server Object Explorer are the Visual Studio instruments used to define or edit the structure or data of any table within a connected database. In fact, using either Explorer, it is possible to create a new SQL Server database instance from scratch. Because the functionality between these Explorer windows is nearly identical, we won’t bother to illustrate every detail here within the context of both Explorers. The SQL Server Object Explorer (launched from the View menu, or by clicking the SQL Server Object Explorer button in the Server Explorer command bar) looks much more like the management console that ships with SQL Server itself and may be preferable to some people. Other than that, it will largely be a matter of preference in terms of which tool you use. For a quick side-by-side comparison of the two windows, see Figure 13.1.

Image

FIGURE 13.1 The Server Explorer versus the SQL Server Object Explorer.

We focus here on using the Server Explorer because most Visual Studio users are already familiar with it.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset