Tables [dbo].[InternationalPort]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created10:12:49 PM Thursday, December 28, 2006
Last Modified9:52:18 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_InternationalPort: InternationalPortIDInternationalPortIDint4
No
1 - 1
Foreign Keys FK_InternationalPort_InternationalTransportationType: [dbo].[InternationalTransportationType].InternationalTransportationTypeFIDIndexes IX_InternationalPort_PortCode_InternationalTransportationTypeFID: PortCode\InternationalTransportationTypeFIDInternationalTransportationTypeFIDint4
No
Indexes IX_InternationalPort_PortCode_InternationalTransportationTypeFID: PortCode\InternationalTransportationTypeFIDPortCodevarchar(15)15
No
Indexes IX_InternationalPort_Name: NameNamevarchar(128)128
No
Foreign Keys FK_InternationalPort_CountryCodeStandard: [dbo].[CountryCodeStandard].CountryCodeStandardFIDCountryCodeStandardFIDint4
Yes
Inactivebit1
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_InternationalPort: InternationalPortIDPK_InternationalPortInternationalPortID
Yes
80
IX_InternationalPort_PortCode_InternationalTransportationTypeFIDPortCode, InternationalTransportationTypeFID
Yes
IX_InternationalPort_NameName
Foreign Keys Foreign Keys
NameColumns
FK_InternationalPort_CountryCodeStandardCountryCodeStandardFID->[dbo].[CountryCodeStandard].[CountryCodeStandardID]
FK_InternationalPort_InternationalTransportationTypeInternationalTransportationTypeFID->[dbo].[InternationalTransportationType].[InternationalTransportationTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[InternationalPort]
(
[InternationalPortID] [int] NOT NULL IDENTITY(1, 1),
[InternationalTransportationTypeFID] [int] NOT NULL,
[PortCode] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Name] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CountryCodeStandardFID] [int] NULL,
[Inactive] [bit] NOT NULL CONSTRAINT [DF_InternationalPort_Inactive] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InternationalPort] ADD CONSTRAINT [PK_InternationalPort] PRIMARY KEY NONCLUSTERED  ([InternationalPortID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InternationalPort] ADD CONSTRAINT [IX_InternationalPort_PortCode_InternationalTransportationTypeFID] UNIQUE NONCLUSTERED  ([PortCode], [InternationalTransportationTypeFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_InternationalPort_Name] ON [dbo].[InternationalPort] ([Name]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InternationalPort] ADD CONSTRAINT [FK_InternationalPort_CountryCodeStandard] FOREIGN KEY ([CountryCodeStandardFID]) REFERENCES [dbo].[CountryCodeStandard] ([CountryCodeStandardID])
GO
ALTER TABLE [dbo].[InternationalPort] ADD CONSTRAINT [FK_InternationalPort_InternationalTransportationType] FOREIGN KEY ([InternationalTransportationTypeFID]) REFERENCES [dbo].[InternationalTransportationType] ([InternationalTransportationTypeID])
GO
GRANT SELECT ON  [dbo].[InternationalPort] TO [MssExec]
GRANT INSERT ON  [dbo].[InternationalPort] TO [MssExec]
GRANT DELETE ON  [dbo].[InternationalPort] TO [MssExec]
GRANT UPDATE ON  [dbo].[InternationalPort] TO [MssExec]
GO
Uses
Used By