Tables [dbo].[ServiceDataDetails]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created1:20:03 AM Thursday, March 21, 2019
Last Modified1:20:28 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_ServiceDataDetails_ID: IDIDint4
False
1 - 1
Foreign Keys FK_ServiceDataDetails_DeviceID_Device_DeviceID: [dbo].[Device].DeviceIDDeviceIDint4
False
Foreign Keys FK_ServiceDataDetails_AuditID_Audit_AuditID: [dbo].[Audit].AuditIDAuditIDint4
False
AlertIndexint4
True
AlertSeverityLevelint4
True
AlertTrainingLevelint4
True
AlertGroupint4
True
AlertGroupIndexint4
True
AlertLocationint4
True
AlertCodeint4
True
AlertDescriptionnvarchar(500)1000
True
AlertTimedatetime8
True
ActivatedOnAuditIDint4
False
AlertHashCodeint4
False
IsPowerSavingOrWarmingUpbit1
False
((0))
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK_ServiceDataDetails_ID: IDPK_ServiceDataDetails_IDID
True
80
NameNo CheckColumns
FK_ServiceDataDetails_AuditID_Audit_AuditID
True
AuditID->[dbo].[Audit].[AuditID]
FK_ServiceDataDetails_DeviceID_Device_DeviceID
True
DeviceID->[dbo].[Device].[DeviceID]
CREATE TABLE [dbo].[ServiceDataDetails]
(
[ID] [int] NOT NULL IDENTITY(1, 1),
[DeviceID] [int] NOT NULL,
[AuditID] [int] NOT NULL,
[AlertIndex] [int] NULL,
[AlertSeverityLevel] [int] NULL,
[AlertTrainingLevel] [int] NULL,
[AlertGroup] [int] NULL,
[AlertGroupIndex] [int] NULL,
[AlertLocation] [int] NULL,
[AlertCode] [int] NULL,
[AlertDescription] [nvarchar] (500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[AlertTime] [datetime] NULL,
[ActivatedOnAuditID] [int] NOT NULL,
[AlertHashCode] [int] NOT NULL,
[IsPowerSavingOrWarmingUp] [bit] NOT NULL CONSTRAINT [DF__ServiceDa__IsPow__02925FBF] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ServiceDataDetails] ADD CONSTRAINT [PK_ServiceDataDetails_ID] PRIMARY KEY CLUSTERED  ([ID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ServiceDataDetails] WITH NOCHECK ADD CONSTRAINT [FK_ServiceDataDetails_AuditID_Audit_AuditID] FOREIGN KEY ([AuditID]) REFERENCES [dbo].[Audit] ([AuditID])
GO
ALTER TABLE [dbo].[ServiceDataDetails] WITH NOCHECK ADD CONSTRAINT [FK_ServiceDataDetails_DeviceID_Device_DeviceID] FOREIGN KEY ([DeviceID]) REFERENCES [dbo].[Device] ([DeviceID])
GO
  • [dbo].[fmav_LargestAccounts]