Tables [dbo].[LSInstructions]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created3:58:46 PM Thursday, December 6, 2018
Last Modified3:58:47 PM Thursday, December 6, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_LSInstructions: LSInstructionsIDLSInstructionsIDint4
No
1 - 1
Foreign Keys FK_LSInstructions_LocServ: [dbo].[LocServ].LSPriKeyIndexes IX_LSInstructions_LSPriKey: LSPriKeyLSPriKeyint4
No
Foreign Keys FK_LSInstructions_Sysuser: [dbo].[Sysuser].SysUserFIDIndexes IX_LSInstructions_SysUserFID: SysUserFIDSysUserFIDint4
No
LastModifieddatetime8
No
Instructionvarchar(1024)1024
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_LSInstructions: LSInstructionsIDPK_LSInstructionsLSInstructionsID
Yes
IX_LSInstructions_LSPriKeyLSPriKey
Yes
IX_LSInstructions_SysUserFIDSysUserFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_LSInstructions_LocServCascadeLSPriKey->[dbo].[LocServ].[PriKey]
FK_LSInstructions_SysuserSysUserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[LSInstructions]
(
[LSInstructionsID] [int] NOT NULL IDENTITY(1, 1),
[LSPriKey] [int] NOT NULL,
[SysUserFID] [int] NOT NULL,
[LastModified] [datetime] NOT NULL,
[Instruction] [varchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LSInstructions] ADD CONSTRAINT [PK_LSInstructions] PRIMARY KEY CLUSTERED  ([LSInstructionsID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_LSInstructions_LSPriKey] ON [dbo].[LSInstructions] ([LSPriKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LSInstructions_SysUserFID] ON [dbo].[LSInstructions] ([SysUserFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LSInstructions] ADD CONSTRAINT [FK_LSInstructions_LocServ] FOREIGN KEY ([LSPriKey]) REFERENCES [dbo].[LocServ] ([PriKey]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[LSInstructions] ADD CONSTRAINT [FK_LSInstructions_Sysuser] FOREIGN KEY ([SysUserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[LSInstructions] TO [MssExec]
GRANT INSERT ON  [dbo].[LSInstructions] TO [MssExec]
GRANT DELETE ON  [dbo].[LSInstructions] TO [MssExec]
GRANT UPDATE ON  [dbo].[LSInstructions] TO [MssExec]
GO
Uses