Tables [dbo].[VanlineAddress]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)6
Created10:12:49 PM Thursday, December 28, 2006
Last Modified11:13:44 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_VanlineAddress: VanlineAddressIDVanlineAddressIDint4
No
1 - 1
Foreign Keys FK_VanlineAddress_Vanline: [dbo].[VanLine].VanlineFIDVanlineFIDint4
No
Foreign Keys FK_VanlineAddress_VanlineAddressType: [dbo].[VanlineAddressType].VanlineAddressTypeFIDVanlineAddressTypeFIDint4
No
Titlevarchar(50)50
Yes
Contactvarchar(30)30
Yes
Address[dbo].[Address]256
Yes
City[dbo].[AddressCity]26
Yes
State[dbo].[AddressState]2
Yes
PostalCode[dbo].[AddressPostalCode]10
Yes
Foreign Keys FK_VanlineAddress_CountryCodeStandard: [dbo].[CountryCodeStandard].CountryCodeStandardFIDCountryCodeStandardFIDint4
No
Countyvarchar(3)3
Yes
Emailvarchar(120)120
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_VanlineAddress: VanlineAddressIDPK_VanlineAddressVanlineAddressID
Yes
80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_VanlineAddress_CountryCodeStandardCountryCodeStandardFID->[dbo].[CountryCodeStandard].[CountryCodeStandardID]
FK_VanlineAddress_VanlineAddressTypeVanlineAddressTypeFID->[dbo].[VanlineAddressType].[VanlineAddressTypeID]
FK_VanlineAddress_VanlineCascadeVanlineFID->[dbo].[VanLine].[VLPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[VanlineAddress]
(
[VanlineAddressID] [int] NOT NULL IDENTITY(1, 1),
[VanlineFID] [int] NOT NULL,
[VanlineAddressTypeFID] [int] NOT NULL,
[Title] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Contact] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Address] [dbo].[Address] NULL,
[City] [dbo].[AddressCity] NULL,
[State] [dbo].[AddressState] NULL,
[PostalCode] [dbo].[AddressPostalCode] NULL,
[CountryCodeStandardFID] [int] NOT NULL,
[County] [varchar] (3) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Email] [varchar] (120) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[VanlineAddress] ADD CONSTRAINT [PK_VanlineAddress] PRIMARY KEY CLUSTERED  ([VanlineAddressID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[VanlineAddress] ADD CONSTRAINT [FK_VanlineAddress_CountryCodeStandard] FOREIGN KEY ([CountryCodeStandardFID]) REFERENCES [dbo].[CountryCodeStandard] ([CountryCodeStandardID])
GO
ALTER TABLE [dbo].[VanlineAddress] ADD CONSTRAINT [FK_VanlineAddress_VanlineAddressType] FOREIGN KEY ([VanlineAddressTypeFID]) REFERENCES [dbo].[VanlineAddressType] ([VanlineAddressTypeID])
GO
ALTER TABLE [dbo].[VanlineAddress] ADD CONSTRAINT [FK_VanlineAddress_Vanline] FOREIGN KEY ([VanlineFID]) REFERENCES [dbo].[VanLine] ([VLPriKey]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[VanlineAddress] TO [MssExec]
GRANT INSERT ON  [dbo].[VanlineAddress] TO [MssExec]
GRANT DELETE ON  [dbo].[VanlineAddress] TO [MssExec]
GRANT UPDATE ON  [dbo].[VanlineAddress] TO [MssExec]
GO
Uses
Used By