Sales.CreditCard Table
Information
| Name | CreditCard |
| Schema | Sales |
| Row Count | 0 |
| Data Size | |
| Index Size | |
| Reserved Size | |
| Unused Size | |
| Created | 29.3.2010. 21:58:18 |
| Modified | 29.3.2010. 21:58:55 |
Extended Properties
| Name | Type | Property Name | Value |
| CreditCard | TABLE | MS_Description | Customer credit card information. |
Columns
| PK | Key | Identity | Name | Data Type | Allow Nulls | Collation | References | Default | Computed | Compute Expression |
|   |   |   | CreditCardID | int |   | | | |   | |
| |   |   | CardType | nvarchar(50) |   | SQL_Latin1_General_CP1_CI_AS | | |   | |
| |   |   | CardNumber | nvarchar(25) |   | SQL_Latin1_General_CP1_CI_AS | | |   | |
| |   |   | ExpMonth | tinyint |   | | | |   | |
| |   |   | ExpYear | smallint |   | | | |   | |
| |   |   | ModifiedDate | datetime |   | | | (getdate()) |   | |
Indexes
SQL Script
CREATE TABLE [Sales].[CreditCard] (
[CreditCardID] int NOT NULL IDENTITY,
[CardType] nvarchar(50) NOT NULL,
[CardNumber] nvarchar(25) NOT NULL,
[ExpMonth] tinyint NOT NULL,
[ExpYear] smallint NOT NULL,
[ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE UNIQUE INDEX [AK_CreditCard_CardNumber] on [Sales].[CreditCard]([CardNumber]);