Table:
Northwind.dbo.CustomerCustomerDemo
Table Properties
| Name | Value |
| Owner | dbo |
| Creation Date | 12/13/2004 |
| ID | 853578079 |
| Located On | PRIMARY |
| Data Size KB | 0 KB |
| Index Size KB | 0 KB |
| Rows | 0 |
Creation Options
| Name | Value |
| QUOTED_IDENTIFIER | ON |
| ANSI_NULLS | ON |
| ANSI_PADDING | ON |
Columns
| Name | Description | Data Type | Max Length | Nullable | Default | IsGUID | ||
| | CustomerID | nchar | 5 | ![]() |
![]() |
||
| | CustomerTypeID | nchar | 10 | ![]() |
![]() |
Indexes
| Index | Primary | Unique | |
![]() |
PK_CustomerCustomerDemo | ![]() |
![]() |
Fulltext Index
Statistics
Check Constraints
Identity Column
Referencing Tables
Referenced Tables
| Table | Primary Key or Unique Constraint | Foreign Key | |
![]() |
CustomerDemographics | PK_CustomerDemographics | FK_CustomerCustomerDemo |
![]() |
Customers | PK_Customers | FK_CustomerCustomerDemo_Customers |
Objects that depend on CustomerCustomerDemo
Objects that CustomerCustomerDemo depends on
| Object Name | Object Type | Dep Level | |
![]() |
CustomerDemographics | Table | 1 |
![]() |
Customers | Table | 1 |
Column Level Dependencies
| Object Name | Column | Object Type | |
![]() |
CustomerDemographics | CustomerTypeID | Table |
![]() |
Customers | CustomerID | Table |
Graphical Dependencies
Extended Properties
Permissions
Table Options
| Name | Value |
| Pintable | OFF |
| Table lock on bulk load | OFF |
| Insert row lock | OFF |
| Text in row | 0 |
| Large value types out of row | 0 |
SQL
SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON SET ANSI_PADDING ON GO CREATE TABLE [dbo].[CustomerCustomerDemo] ( [CustomerID] nchar(5) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [CustomerTypeID] nchar(10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ) ON [PRIMARY] GO ALTER TABLE [dbo].[CustomerCustomerDemo] ADD CONSTRAINT [PK_CustomerCustomerDemo] PRIMARY KEY NONCLUSTERED ([CustomerID], [CustomerTypeID]) ON [PRIMARY] GO ALTER TABLE [dbo].[CustomerCustomerDemo] ADD CONSTRAINT [FK_CustomerCustomerDemo] FOREIGN KEY ([CustomerTypeID]) REFERENCES [dbo].[CustomerDemographics] ([CustomerTypeID]) GO ALTER TABLE [dbo].[CustomerCustomerDemo] ADD CONSTRAINT [FK_CustomerCustomerDemo_Customers] FOREIGN KEY ([CustomerID]) REFERENCES [dbo].[Customers] ([CustomerID]) GO |
See also