Tables [dbo].[TripOrd]
Properties
PropertyValue
Row Count (~)7991
Created4:57:08 PM Thursday, September 7, 2006
Last Modified11:13:44 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_TRIPORD: PriKeyPriKeyint4
No
1 - 1
Foreign Keys FK_TRIPORD_ORDERS: [dbo].[Orders].OrdPriKeyIndexes IX_TripOrd_OrdPriKey: OrdPriKeyOrdPriKeyint4
No
Foreign Keys FK_TRIPORD_Trips: [dbo].[Trips].TripPriKeyTripPriKeyint4
No
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_TRIPORD: PriKeyPK_TRIPORDPriKey
Yes
80
IX_TripOrd_OrdPriKeyOrdPriKey
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_TRIPORD_ORDERSOrdPriKey->[dbo].[Orders].[PriKey]
FK_TRIPORD_TripsTripPriKey->[dbo].[Trips].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[TripOrd]
(
[PriKey] [int] NOT NULL IDENTITY(1, 1),
[OrdPriKey] [int] NOT NULL,
[TripPriKey] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TripOrd] ADD CONSTRAINT [PK_TRIPORD] PRIMARY KEY CLUSTERED  ([PriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TripOrd] ADD CONSTRAINT [IX_TripOrd_OrdPriKey] UNIQUE NONCLUSTERED  ([OrdPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TripOrd] ADD CONSTRAINT [FK_TRIPORD_ORDERS] FOREIGN KEY ([OrdPriKey]) REFERENCES [dbo].[Orders] ([PriKey])
GO
ALTER TABLE [dbo].[TripOrd] ADD CONSTRAINT [FK_TRIPORD_Trips] FOREIGN KEY ([TripPriKey]) REFERENCES [dbo].[Trips] ([PriKey])
GO
GRANT SELECT ON  [dbo].[TripOrd] TO [MssExec]
GRANT INSERT ON  [dbo].[TripOrd] TO [MssExec]
GRANT DELETE ON  [dbo].[TripOrd] TO [MssExec]
GRANT UPDATE ON  [dbo].[TripOrd] TO [MssExec]
GO
Uses
Used By