Tables [dbo].[QueueToolJoin]
Properties
PropertyValue
Row Count0
Created12:44:45 PM Thursday, October 04, 2007
Last Modified12:44:45 PM Thursday, October 04, 2007
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key pk_queuetool: queueID\toolIDForeign Keys fk_queuetool_queue: [dbo].[Queues].queueIDqueueIDint4
No
Cluster Primary Key pk_queuetool: queueID\toolIDForeign Keys fk_queuetool_toolID: [dbo].[Tools].toolIDtoolIDint4
No
displayOrderint4
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key pk_queuetool: queueID\toolIDpk_queuetoolqueueID, toolID
Yes
Foreign Keys Foreign Keys
NameColumns
fk_queuetool_queuequeueID->[dbo].[Queues].[queueID]
fk_queuetool_toolIDtoolID->[dbo].[Tools].[toolID]
SQL Script
CREATE TABLE [dbo].[QueueToolJoin]
(
[queueID] [int] NOT NULL,
[toolID] [int] NOT NULL,
[displayOrder] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QueueToolJoin] ADD CONSTRAINT [pk_queuetool] PRIMARY KEY CLUSTERED ([queueID], [toolID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QueueToolJoin] ADD CONSTRAINT [fk_queuetool_queue] FOREIGN KEY ([queueID]) REFERENCES [dbo].[Queues] ([queueID])
GO
ALTER TABLE [dbo].[QueueToolJoin] ADD CONSTRAINT [fk_queuetool_toolID] FOREIGN KEY ([toolID]) REFERENCES [dbo].[Tools] ([toolID])
GO
Uses