Tables [dbo].[OrderContacts]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created8:53:30 AM Friday, December 7, 2018
Last Modified9:18:09 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_OrderContacts: OrderContactIDOrderContactIDint4
No
1 - 1
Foreign Keys FK_OrderContacts_Order: [dbo].[Orders].OrderFIDIndexes ix_OrderContacts_Order: OrderFIDOrderFIDint4
No
Contactvarchar(30)30
Yes
Titlevarchar(50)50
Yes
Emailvarchar(120)120
Yes
Namevarchar(100)100
Yes
ImportedFlagbit1
No
((0))
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_OrderContacts: OrderContactIDPK_OrderContactsOrderContactID
Yes
ix_OrderContacts_OrderOrderFID
Foreign Keys Foreign Keys
NameColumns
FK_OrderContacts_OrderOrderFID->[dbo].[Orders].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OrderContacts]
(
[OrderContactID] [int] NOT NULL IDENTITY(1, 1),
[OrderFID] [int] NOT NULL,
[Contact] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Title] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Email] [varchar] (120) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Name] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ImportedFlag] [bit] NOT NULL CONSTRAINT [DF_OrderContacts_ImportedFlag] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderContacts] ADD CONSTRAINT [PK_OrderContacts] PRIMARY KEY CLUSTERED  ([OrderContactID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ix_OrderContacts_Order] ON [dbo].[OrderContacts] ([OrderFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderContacts] ADD CONSTRAINT [FK_OrderContacts_Order] FOREIGN KEY ([OrderFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON  [dbo].[OrderContacts] TO [MssExec]
GRANT INSERT ON  [dbo].[OrderContacts] TO [MssExec]
GRANT DELETE ON  [dbo].[OrderContacts] TO [MssExec]
GRANT UPDATE ON  [dbo].[OrderContacts] TO [MssExec]
GO
Uses
Used By