Tables [dbo].[InternationalBOLConsignee]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created10:12:49 PM Thursday, December 28, 2006
Last Modified9:13:25 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_InternationalBOLConsignee: InternationalBOLConsigneeIDInternationalBOLConsigneeIDint4
No
1 - 1
Foreign Keys FK_InternationalBOLConsignee_InternationalBOLConsigneeType: [dbo].[InternationalBOLConsigneeType].InternationalBOLConsigneeTypeFIDInternationalBOLConsigneeTypeFIDint4
No
Foreign Keys FK_InternationalBOLConsignee_Orders: [dbo].[Orders].OrdersFIDIndexes IX_InternationalBOLConsignee_Orders: OrdersFIDOrdersFIDint4
No
Foreign Keys FK_InternationalBOLConsignee_Agent: [dbo].[Agent].AgentFIDAgentFIDint4
Yes
VendorIDvarchar(15)15
Yes
Contactvarchar(65)65
No
Namevarchar(65)65
Yes
Emailvarchar(120)120
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_InternationalBOLConsignee: InternationalBOLConsigneeIDPK_InternationalBOLConsigneeInternationalBOLConsigneeID
Yes
80
IX_InternationalBOLConsignee_OrdersOrdersFID
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_InternationalBOLConsignee_AgentAgentFID->[dbo].[Agent].[AgentPriKey]
FK_InternationalBOLConsignee_InternationalBOLConsigneeTypeInternationalBOLConsigneeTypeFID->[dbo].[InternationalBOLConsigneeType].[InternationalBOLConsigneeTypeID]
FK_InternationalBOLConsignee_OrdersOrdersFID->[dbo].[Orders].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[InternationalBOLConsignee]
(
[InternationalBOLConsigneeID] [int] NOT NULL IDENTITY(1, 1),
[InternationalBOLConsigneeTypeFID] [int] NOT NULL,
[OrdersFID] [int] NOT NULL,
[AgentFID] [int] NULL,
[VendorID] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Contact] [varchar] (65) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Name] [varchar] (65) 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].[InternationalBOLConsignee] ADD CONSTRAINT [PK_InternationalBOLConsignee] PRIMARY KEY CLUSTERED  ([InternationalBOLConsigneeID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InternationalBOLConsignee] ADD CONSTRAINT [IX_InternationalBOLConsignee_Orders] UNIQUE NONCLUSTERED  ([OrdersFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InternationalBOLConsignee] ADD CONSTRAINT [FK_InternationalBOLConsignee_Agent] FOREIGN KEY ([AgentFID]) REFERENCES [dbo].[Agent] ([AgentPriKey])
GO
ALTER TABLE [dbo].[InternationalBOLConsignee] ADD CONSTRAINT [FK_InternationalBOLConsignee_InternationalBOLConsigneeType] FOREIGN KEY ([InternationalBOLConsigneeTypeFID]) REFERENCES [dbo].[InternationalBOLConsigneeType] ([InternationalBOLConsigneeTypeID])
GO
ALTER TABLE [dbo].[InternationalBOLConsignee] ADD CONSTRAINT [FK_InternationalBOLConsignee_Orders] FOREIGN KEY ([OrdersFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON  [dbo].[InternationalBOLConsignee] TO [MssExec]
GRANT INSERT ON  [dbo].[InternationalBOLConsignee] TO [MssExec]
GRANT DELETE ON  [dbo].[InternationalBOLConsignee] TO [MssExec]
GRANT UPDATE ON  [dbo].[InternationalBOLConsignee] TO [MssExec]
GO
Uses
Used By