Tables [dbo].[LSDiff]
Properties
PropertyValue
Row Count (~)4
Created4:57:08 PM Thursday, September 7, 2006
Last Modified3:37:55 PM Thursday, December 6, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_LSDiff: PriKeyPriKeyint4
No
1 - 1
Foreign Keys FK_LSDiff_LOCSERV: [dbo].[LocServ].LSPriKeyIndexes IX_LSDiff_LSPriKey: LSPriKeyLSPriKeyint4
No
DiffFactorint4
No
Quantityint4
No
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_LSDiff: PriKeyPK_LSDiffPriKey
Yes
80
IX_LSDiff_LSPriKeyLSPriKey
Foreign Keys Foreign Keys
NameDeleteColumns
FK_LSDiff_LOCSERVCascadeLSPriKey->[dbo].[LocServ].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[LSDiff]
(
[PriKey] [int] NOT NULL IDENTITY(1, 1),
[LSPriKey] [int] NOT NULL,
[DiffFactor] [int] NOT NULL,
[Quantity] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LSDiff] ADD CONSTRAINT [PK_LSDiff] PRIMARY KEY CLUSTERED  ([PriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LSDiff_LSPriKey] ON [dbo].[LSDiff] ([LSPriKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LSDiff] ADD CONSTRAINT [FK_LSDiff_LOCSERV] FOREIGN KEY ([LSPriKey]) REFERENCES [dbo].[LocServ] ([PriKey]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[LSDiff] TO [MssExec]
GRANT INSERT ON  [dbo].[LSDiff] TO [MssExec]
GRANT DELETE ON  [dbo].[LSDiff] TO [MssExec]
GRANT UPDATE ON  [dbo].[LSDiff] TO [MssExec]
GO
Uses