Tables [dbo].[LongDistanceDispatchComment]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created4:02:11 PM Tuesday, May 26, 2015
Last Modified4:02:11 PM Tuesday, May 26, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_LongDistanceDispatchComment: LongDistanceDispatchCommentIDLongDistanceDispatchCommentIDint4
No
1 - 1
Foreign Keys FK_LongDistanceDispatchComment_Orders: [dbo].[Orders].OrderFIDIndexes IX_LongDistanceDispatchComment_OrderFID: OrderFIDOrderFIDint4
No
Commentvarchar(100)100
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_LongDistanceDispatchComment: LongDistanceDispatchCommentIDPK_LongDistanceDispatchCommentLongDistanceDispatchCommentID
Yes
IX_LongDistanceDispatchComment_OrderFIDOrderFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_LongDistanceDispatchComment_OrdersOrderFID->[dbo].[Orders].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[LongDistanceDispatchComment]
(
[LongDistanceDispatchCommentID] [int] NOT NULL IDENTITY(1, 1),
[OrderFID] [int] NOT NULL,
[Comment] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LongDistanceDispatchComment] ADD CONSTRAINT [PK_LongDistanceDispatchComment] PRIMARY KEY CLUSTERED  ([LongDistanceDispatchCommentID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LongDistanceDispatchComment] ADD CONSTRAINT [IX_LongDistanceDispatchComment_OrderFID] UNIQUE NONCLUSTERED  ([OrderFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LongDistanceDispatchComment] ADD CONSTRAINT [FK_LongDistanceDispatchComment_Orders] FOREIGN KEY ([OrderFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON  [dbo].[LongDistanceDispatchComment] TO [MssExec]
GRANT INSERT ON  [dbo].[LongDistanceDispatchComment] TO [MssExec]
GRANT DELETE ON  [dbo].[LongDistanceDispatchComment] TO [MssExec]
GRANT UPDATE ON  [dbo].[LongDistanceDispatchComment] TO [MssExec]
GO
Uses