the line, we include the Employee ID column, the function of which is to assign
a unique number to each employee in the database. This gives us an easy way to
refer to each person, and let us keep track of which employee is which. Well
discuss such database design issues in greater depth shortly.
So, to review, Figure 7.1 shows a four-column table with four rows, or entries.
Each row in the table contains four fields, one for each column in the table: the
employees ID, name, username, and telephone number.
Now, with this basic terminology under your belt, youre ready to roll up your
sleeves and build your first database!
Creating your First Database
The SQL Server 2005 engine does a great job of storing and managing your
databases, but in order to be able to do anything meaningful with the data, we
first need to connect to SQL Server. There are many ways to interact with SQL
Server, but for starters, were just interested in using it as a visual tool to facilitate
basic administrative tasks.
Because youre using SQL Server 2005, your key tools will be either:
Visual Web Developer 2005 Express Edition
SQL Server Management Studio Express Edition
Thats right, Visual Web Developer has everything you need to get started with
SQL Server! However, well use SQL Server Management Studio for most database
tasksmost tasks are easier in SQL Server Management Studio than they are in
Visual Web Developer, as SQL Server Management Studios interface has been
designed specifically for working with databases.
Well call the database that will store the data for our sample project
Dorknozzle. In this chapter, youll learn how to create its structure, and in the
next chapter, well begin to work with the database. You can use either Visual
Web Developer or SQL Server Management Studio to create the Dorknozzle
database. Ill show you both approaches, so youre comfortable with both options.
254
Chapter 7: Database Design and Development

Get Build Your Own ASP.NET 2.0 Web Site Using C# & VB, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.