Person.AddressType Table

Information

NameAddressType
SchemaPerson
Row Count0
Data Size 
Index Size 
Reserved Size 
Unused Size 
Created29.3.2010. 21:58:18
Modified29.3.2010. 21:58:56

Extended Properties

NameTypeProperty NameValue
AddressTypeTABLEMS_DescriptionTypes of addresses stored in the Address table.

Columns

PKKeyIdentityNameData TypeAllow NullsCollationReferencesDefaultComputedCompute Expression
   AddressTypeIDint   
 
 
 
   Namenvarchar(50) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   rowguiduniqueidentifier   
(newid())
 
 
   ModifiedDatedatetime   
(getdate())
 
 

Indexes

NameTypePrimaryUniqueColumns
PK_AddressType_AddressTypeIDClustered  AddressTypeID
AK_AddressType_rowguidNonClustered  rowguid
AK_AddressType_NameNonClustered  Name

SQL Script

CREATE TABLE [Person].[AddressType] (
    [AddressTypeID] int NOT NULL IDENTITY,
    [Name] nvarchar(50) NOT NULL,
    [rowguid] uniqueidentifier NOT NULL DEFAULT (newid()),
    [ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE UNIQUE INDEX [AK_AddressType_rowguid] on [Person].[AddressType]([rowguid]);
CREATE UNIQUE INDEX [AK_AddressType_Name] on [Person].[AddressType]([Name]);