Tables [dbo].[TradeShow]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created5:00:24 PM Monday, April 21, 2008
Last Modified7:40:00 PM Wednesday, February 28, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_TradeShow: TradeShowIDTradeShowIDint4
No
1 - 1
Foreign Keys FK_TradeShow_Orders: [dbo].[Orders].OrdersFIDIndexes IX_TradeShow_OrdersFID: ShowCode\SequenceNumber\OrdersFIDOrdersFIDint4
No
Indexes IX_TradeShow_OrdersFID: ShowCode\SequenceNumber\OrdersFIDShowCodevarchar(4)4
Yes
TradeShowNamevarchar(50)50
Yes
BoothNumbervarchar(20)20
Yes
Exhibitorvarchar(20)20
Yes
OriginDestinationFlagsmallint2
No
Indexes IX_TradeShow_OrdersFID: ShowCode\SequenceNumber\OrdersFIDSequenceNumberint4
No
BoothDescriptionvarchar(64)64
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_TradeShow: TradeShowIDPK_TradeShowTradeShowID
Yes
80
IX_TradeShow_OrdersFIDShowCode, SequenceNumber, OrdersFID
Foreign Keys Foreign Keys
NameColumns
FK_TradeShow_OrdersOrdersFID->[dbo].[Orders].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[TradeShow]
(
[TradeShowID] [int] NOT NULL IDENTITY(1, 1),
[OrdersFID] [int] NOT NULL,
[ShowCode] [varchar] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TradeShowName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[BoothNumber] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Exhibitor] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[OriginDestinationFlag] [smallint] NOT NULL,
[SequenceNumber] [int] NOT NULL,
[BoothDescription] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TradeShow] ADD CONSTRAINT [PK_TradeShow] PRIMARY KEY CLUSTERED  ([TradeShowID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_TradeShow_OrdersFID] ON [dbo].[TradeShow] ([OrdersFID]) INCLUDE ([SequenceNumber], [ShowCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TradeShow] ADD CONSTRAINT [FK_TradeShow_Orders] FOREIGN KEY ([OrdersFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON  [dbo].[TradeShow] TO [MssExec]
GRANT INSERT ON  [dbo].[TradeShow] TO [MssExec]
GRANT DELETE ON  [dbo].[TradeShow] TO [MssExec]
GRANT UPDATE ON  [dbo].[TradeShow] TO [MssExec]
GO
Uses
Used By