Tables [dbo].[ServiceDetail]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created9:00:34 AM Friday, December 7, 2018
Last Modified9:00:51 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_ServiceDetail: ServiceDetailIDServiceDetailIDint4
No
1 - 1
Foreign Keys FK_ServiceDetail_ServiceGroup: [dbo].[ServiceGroup].ServiceGroupFIDServiceGroupFIDint4
No
Descriptionvarchar(64)64
No
SortOrderint4
No
((0))
Indexes Indexes
NameColumnsUnique
Primary Key PK_ServiceDetail: ServiceDetailIDPK_ServiceDetailServiceDetailID
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_ServiceDetail_ServiceGroupCascadeServiceGroupFID->[dbo].[ServiceGroup].[ServiceGroupID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ServiceDetail]
(
[ServiceDetailID] [int] NOT NULL IDENTITY(1, 1),
[ServiceGroupFID] [int] NOT NULL,
[Description] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SortOrder] [int] NOT NULL CONSTRAINT [DF_ServiceDetail_SortOrder] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ServiceDetail] ADD CONSTRAINT [PK_ServiceDetail] PRIMARY KEY NONCLUSTERED  ([ServiceDetailID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ServiceDetail] ADD CONSTRAINT [FK_ServiceDetail_ServiceGroup] FOREIGN KEY ([ServiceGroupFID]) REFERENCES [dbo].[ServiceGroup] ([ServiceGroupID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[ServiceDetail] TO [MssExec]
GRANT INSERT ON  [dbo].[ServiceDetail] TO [MssExec]
GRANT DELETE ON  [dbo].[ServiceDetail] TO [MssExec]
GRANT UPDATE ON  [dbo].[ServiceDetail] TO [MssExec]
GO
Uses
Used By