17.06.2013 Views

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 8: Being Normal: Normalization and Other Basic Design Issues<br />

Figure 8-9<br />

How It Works<br />

You’ll notice right away that there is a lot more than what we saw with our first look at the diagram tools<br />

back in Chapter 5. <strong>SQL</strong> <strong>Server</strong> enumerates through each table we have said we want added and analyzed<br />

to determine what other objects are associated with those tables. The various other items you see beyond<br />

the table itself are some of the many other objects that tie into tables — primary keys and foreign keys.<br />

So, having gotten a start, let’s use this diagram as a launching point for explaining how the diagramming<br />

tool works and building a few tables here and there.<br />

Tables<br />

Each table has its own window you can move around. The primary key is shown with the little symbol<br />

of a key in the column to the left of the name like the one next to the CustomerID in Figure 8-10.<br />

Figure 8-10<br />

Just like in Chapter 5, this is the default view for the table — you can select from several others that allow<br />

you to edit the very makeup of the table. To check out your options for views of a table, just right-click<br />

237

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!