Tables [dbo].[XtraStopPhoneNumber]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)254
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_XtraStopPhoneNumber: XtraStopPhoneNumberIDXtraStopPhoneNumberIDint4
No
1 - 1
Foreign Keys FK_XtraStopPhoneNumber_CountryCodeStandard: [dbo].[CountryCodeStandard].CountryCodeStandardFIDCountryCodeStandardFIDint4
Yes
AreaCode[dbo].[PhoneAreaCode]4
Yes
LocalNumber[dbo].[PhoneLocalNumber]20
Yes
Extension[dbo].[PhoneExtension]10
Yes
Foreign Keys FK_XtraStopPhoneNumber_XtraStop: [dbo].[XtraStop].XtraStopFIDIndexes IX_XtraStopPhoneNumber_XtraStopAndPhoneType: XtraStopFID\XtraStopPhoneTypeFIDXtraStopFIDint4
No
Foreign Keys FK_XtraStopPhoneNumber_XtraStopPhoneType: [dbo].[XtraStopPhoneType].XtraStopPhoneTypeFIDIndexes IX_XtraStopPhoneNumber_XtraStopAndPhoneType: XtraStopFID\XtraStopPhoneTypeFIDXtraStopPhoneTypeFIDint4
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_XtraStopPhoneNumber: XtraStopPhoneNumberIDPK_XtraStopPhoneNumberXtraStopPhoneNumberID
Yes
80
IX_XtraStopPhoneNumber_XtraStopAndPhoneTypeXtraStopFID, XtraStopPhoneTypeFID
Yes
80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XtraStopPhoneNumber_CountryCodeStandardCountryCodeStandardFID->[dbo].[CountryCodeStandard].[CountryCodeStandardID]
FK_XtraStopPhoneNumber_XtraStopCascadeXtraStopFID->[dbo].[XtraStop].[PriKey]
FK_XtraStopPhoneNumber_XtraStopPhoneTypeXtraStopPhoneTypeFID->[dbo].[XtraStopPhoneType].[XtraStopPhoneTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XtraStopPhoneNumber]
(
[XtraStopPhoneNumberID] [int] NOT NULL IDENTITY(1, 1),
[CountryCodeStandardFID] [int] NULL,
[AreaCode] [dbo].[PhoneAreaCode] NULL,
[LocalNumber] [dbo].[PhoneLocalNumber] NULL,
[Extension] [dbo].[PhoneExtension] NULL,
[XtraStopFID] [int] NOT NULL,
[XtraStopPhoneTypeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XtraStopPhoneNumber] ADD CONSTRAINT [PK_XtraStopPhoneNumber] PRIMARY KEY NONCLUSTERED  ([XtraStopPhoneNumberID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XtraStopPhoneNumber] ADD CONSTRAINT [IX_XtraStopPhoneNumber_XtraStopAndPhoneType] UNIQUE NONCLUSTERED  ([XtraStopFID], [XtraStopPhoneTypeFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XtraStopPhoneNumber] ADD CONSTRAINT [FK_XtraStopPhoneNumber_CountryCodeStandard] FOREIGN KEY ([CountryCodeStandardFID]) REFERENCES [dbo].[CountryCodeStandard] ([CountryCodeStandardID])
GO
ALTER TABLE [dbo].[XtraStopPhoneNumber] ADD CONSTRAINT [FK_XtraStopPhoneNumber_XtraStop] FOREIGN KEY ([XtraStopFID]) REFERENCES [dbo].[XtraStop] ([PriKey]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XtraStopPhoneNumber] ADD CONSTRAINT [FK_XtraStopPhoneNumber_XtraStopPhoneType] FOREIGN KEY ([XtraStopPhoneTypeFID]) REFERENCES [dbo].[XtraStopPhoneType] ([XtraStopPhoneTypeID])
GO
GRANT SELECT ON  [dbo].[XtraStopPhoneNumber] TO [MssExec]
GRANT INSERT ON  [dbo].[XtraStopPhoneNumber] TO [MssExec]
GRANT DELETE ON  [dbo].[XtraStopPhoneNumber] TO [MssExec]
GRANT UPDATE ON  [dbo].[XtraStopPhoneNumber] TO [MssExec]
GO
Uses
Used By