Buildmasters Legacy Database Documentation

Table: Northwind.dbo.CustomerCustomerDemo

CollapseAll image

Collapse image 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

Collapse image Creation Options

Name  Value 
QUOTED_IDENTIFIER ON
ANSI_NULLS ON
ANSI_PADDING ON

Collapse image Columns

    Name  Description  Data Type  Max Length  Nullable  Default IsGUID 
Primary Key Foreign Key CustomerID   nchar 5  
Primary Key Foreign Key CustomerTypeID   nchar 10  
Total: 2 column(s)

Collapse image Indexes

  Index  Primary  Unique 
PK_CustomerCustomerDemo

Collapse image Fulltext Index

No fulltext index exist

Collapse image Statistics

No statistics exist

Collapse image Check Constraints

No check constraints exist

Collapse image Identity Column

No identity column exists

Collapse image Referencing Tables

No referencing tables exist

Collapse image Referenced Tables

  Table  Primary Key or Unique Constraint  Foreign Key 
CustomerDemographics PK_CustomerDemographics FK_CustomerCustomerDemo
Customers PK_Customers FK_CustomerCustomerDemo_Customers
Total: 2 table(s)

Collapse image Objects that depend on CustomerCustomerDemo

No dependencies exist

Collapse image Objects that CustomerCustomerDemo depends on

  Object Name Object Type Dep Level
CustomerDemographics Table 1
Customers Table 1
Total 2 object(s)

Collapse image Column Level Dependencies

  Object Name Column Object Type
CustomerDemographics CustomerTypeID Table
Customers CustomerID Table
Total 2 column(s)

Collapse image Graphical Dependencies

Click Here to view Dependencies Graphically

Collapse image Extended Properties

No extended properties defined

Collapse image Permissions

No permissions defined

Collapse image 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

Collapse image 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

Collapse image See also

List of Tables


Buildmasters.com.au




Buildmasters Legacy Database Documentation