Tables [dbo].[ShAttributeValues]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:56:25 AM Thursday, March 21, 2019
Last Modified1:15:32 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_ShAttributeValues: ShAttributeValueIDShAttributeValueIDint4
False
1 - 1
Foreign Keys FK_ShAttributeValues_ShAttributeID_ShAttributes: [dbo].[ShAttributes].ShAttributeIDShAttributeIDint4
False
Foreign Keys FK_ShAttributeValues_ShTrackingValueGroupID_ShTrackingValueGroups: [dbo].[ShTrackingValueGroups].ShTrackingValueGroupIDShTrackingValueGroupIDint4
False
IDValint4
True
Textvalvarchar(1024)1024
True
IsActivebit1
False
((1))
Requiredbit1
False
((0))
CreatorIDvarchar(8)8
False
CreateDatedatetime8
False
(getdate())
Foreign Keys FK_ShAttributeValues_MeterReadingGroupID_MTMeterReadingGroups: [dbo].[MTMeterReadingGroups].MeterReadingGroupIDMeterReadingGroupIDint4
True
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK_ShAttributeValues: ShAttributeValueIDPK_ShAttributeValuesShAttributeValueID
True
80
NameColumns
FK_ShAttributeValues_MeterReadingGroupID_MTMeterReadingGroupsMeterReadingGroupID->[dbo].[MTMeterReadingGroups].[MeterReadingGroupID]
FK_ShAttributeValues_ShAttributeID_ShAttributesShAttributeID->[dbo].[ShAttributes].[ShAttributeID]
FK_ShAttributeValues_ShTrackingValueGroupID_ShTrackingValueGroupsShTrackingValueGroupID->[dbo].[ShTrackingValueGroups].[ShTrackingValueGroupID]
CREATE TABLE [dbo].[ShAttributeValues]
(
[ShAttributeValueID] [int] NOT NULL IDENTITY(1, 1),
[ShAttributeID] [int] NOT NULL,
[ShTrackingValueGroupID] [int] NOT NULL,
[IDVal] [int] NULL,
[Textval] [varchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[IsActive] [bit] NOT NULL CONSTRAINT [DF_ShAttributeValues_IsActive] DEFAULT ((1)),
[Required] [bit] NOT NULL CONSTRAINT [DF_ShAttributeValues_Required] DEFAULT ((0)),
[CreatorID] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CreateDate] [datetime] NOT NULL CONSTRAINT [DF_ShAttributeValues_CreateDate] DEFAULT (getdate()),
[MeterReadingGroupID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShAttributeValues] ADD CONSTRAINT [PK_ShAttributeValues] PRIMARY KEY CLUSTERED  ([ShAttributeValueID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShAttributeValues] ADD CONSTRAINT [FK_ShAttributeValues_MeterReadingGroupID_MTMeterReadingGroups] FOREIGN KEY ([MeterReadingGroupID]) REFERENCES [dbo].[MTMeterReadingGroups] ([MeterReadingGroupID])
GO
ALTER TABLE [dbo].[ShAttributeValues] ADD CONSTRAINT [FK_ShAttributeValues_ShAttributeID_ShAttributes] FOREIGN KEY ([ShAttributeID]) REFERENCES [dbo].[ShAttributes] ([ShAttributeID])
GO
ALTER TABLE [dbo].[ShAttributeValues] ADD CONSTRAINT [FK_ShAttributeValues_ShTrackingValueGroupID_ShTrackingValueGroups] FOREIGN KEY ([ShTrackingValueGroupID]) REFERENCES [dbo].[ShTrackingValueGroups] ([ShTrackingValueGroupID])
GO
  • [dbo].[v_ShAttributeValues]