Tables [dbo].[XtraStopAddress]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)713
Created4:57:08 PM Thursday, September 7, 2006
Last Modified11:13:44 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XtraStopAddress: XtraStopAddressIDXtraStopAddressIDint4
No
1 - 1
Foreign Keys FK_XtraStopAddress_XtraStop: [dbo].[XtraStop].XtraStopFIDIndexes IX_XtraStopAddress_AddressType: XtraStopFID\AddressTypeFIDXtraStopFIDint4
No
Foreign Keys FK_XtraStopAddress_AddressType: [dbo].[AddressType].AddressTypeFIDCheck Constraints CK_XtraStopAddress_AddressType : ([dbo].[GetAddressTypeName]([AddressTypeFID])='Main')Indexes IX_XtraStopAddress_AddressType: XtraStopFID\AddressTypeFIDAddressTypeFIDint4
No
Address1[dbo].[Address]256
Yes
Address2[dbo].[Address]256
Yes
Address3[dbo].[Address]256
Yes
City[dbo].[AddressCity]26
Yes
State[dbo].[AddressState]2
Yes
PostalCode[dbo].[AddressPostalCode]10
Yes
Foreign Keys FK_XtraStopAddress_CountryCodeStandard: [dbo].[CountryCodeStandard].CountryCodeStandardFIDCountryCodeStandardFIDint4
No
Foreign Keys FK_XtraStopAddress_AddressLocationType: [dbo].[AddressLocationType].AddressLocationTypeFIDAddressLocationTypeFIDint4
Yes
SPLCint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_XtraStopAddress: XtraStopAddressIDPK_XtraStopAddressXtraStopAddressID
Yes
80
IX_XtraStopAddress_AddressTypeXtraStopFID, AddressTypeFID
Yes
80
Check Constraints Check Constraints
NameOn ColumnConstraint
CK_XtraStopAddress_AddressTypeAddressTypeFID([dbo].[GetAddressTypeName]([AddressTypeFID])='Main')
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XtraStopAddress_AddressLocationTypeAddressLocationTypeFID->[dbo].[AddressLocationType].[AddressLocationTypeID]
FK_XtraStopAddress_AddressTypeAddressTypeFID->[dbo].[AddressType].[AddressTypeID]
FK_XtraStopAddress_CountryCodeStandardCountryCodeStandardFID->[dbo].[CountryCodeStandard].[CountryCodeStandardID]
FK_XtraStopAddress_XtraStopCascadeXtraStopFID->[dbo].[XtraStop].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XtraStopAddress]
(
[XtraStopAddressID] [int] NOT NULL IDENTITY(1, 1),
[XtraStopFID] [int] NOT NULL,
[AddressTypeFID] [int] NOT NULL,
[Address1] [dbo].[Address] NULL,
[Address2] [dbo].[Address] NULL,
[Address3] [dbo].[Address] NULL,
[City] [dbo].[AddressCity] NULL,
[State] [dbo].[AddressState] NULL,
[PostalCode] [dbo].[AddressPostalCode] NULL,
[CountryCodeStandardFID] [int] NOT NULL,
[AddressLocationTypeFID] [int] NULL,
[SPLC] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XtraStopAddress] ADD CONSTRAINT [CK_XtraStopAddress_AddressType] CHECK (([dbo].[GetAddressTypeName]([AddressTypeFID])='Main'))
GO
ALTER TABLE [dbo].[XtraStopAddress] ADD CONSTRAINT [PK_XtraStopAddress] PRIMARY KEY NONCLUSTERED  ([XtraStopAddressID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XtraStopAddress] ADD CONSTRAINT [IX_XtraStopAddress_AddressType] UNIQUE NONCLUSTERED  ([XtraStopFID], [AddressTypeFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XtraStopAddress] ADD CONSTRAINT [FK_XtraStopAddress_AddressLocationType] FOREIGN KEY ([AddressLocationTypeFID]) REFERENCES [dbo].[AddressLocationType] ([AddressLocationTypeID])
GO
ALTER TABLE [dbo].[XtraStopAddress] ADD CONSTRAINT [FK_XtraStopAddress_AddressType] FOREIGN KEY ([AddressTypeFID]) REFERENCES [dbo].[AddressType] ([AddressTypeID])
GO
ALTER TABLE [dbo].[XtraStopAddress] ADD CONSTRAINT [FK_XtraStopAddress_CountryCodeStandard] FOREIGN KEY ([CountryCodeStandardFID]) REFERENCES [dbo].[CountryCodeStandard] ([CountryCodeStandardID])
GO
ALTER TABLE [dbo].[XtraStopAddress] ADD CONSTRAINT [FK_XtraStopAddress_XtraStop] FOREIGN KEY ([XtraStopFID]) REFERENCES [dbo].[XtraStop] ([PriKey]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XtraStopAddress] TO [MssExec]
GRANT INSERT ON  [dbo].[XtraStopAddress] TO [MssExec]
GRANT DELETE ON  [dbo].[XtraStopAddress] TO [MssExec]
GRANT UPDATE ON  [dbo].[XtraStopAddress] TO [MssExec]
GO
Uses
Used By