SQLConfiguration SQLConfiguration


Table Column Attributes  «Prev  Next»
Lesson 1

Column Attributes for a Table

Before you learn how to create, modify, and delete tables in a database, it is important to understand the attributes that are available for columns in SQL Server tables. This is primarily because you will use these attributes when you create or modify tables or design your data model.
As discussed later in this module, a table is made up of one or more columns. These columns, also known as fields, define how the data is stored in a table. Each one of the columns is made up of attributes and these attributes are discussed throughout this module.


Learning objectives


After completing this module, you will be able to:
  1. Identify the correct datatypes to use for your columns
  2. Specify length, precision, and scale for your columns
  3. State when to allow null values
  4. Specify default values for your columns
  5. Use identity and ROWGUIDCOL flags
  6. Create and use your own datatypes
In the next lesson, you will learn about the different datatypes available to you.