Tables [dbo].[SCReportProblemCodes]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created1:00:18 AM Thursday, March 21, 2019
Last Modified1:15:29 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_SCReportProblemCodes: ReportID\ProblemCodeIDForeign Keys FK_SCReportProblemCodes_ReportID_SCReports: [dbo].[SCReports].ReportIDReportIDint4
False
Cluster Primary Key PK_SCReportProblemCodes: ReportID\ProblemCodeIDForeign Keys FK_SCReportProblemCodes_ProblemCodeID_SCProblemCodes: [dbo].[SCProblemCodes].ProblemCodeIDProblemCodeIDint4
False
CreatorIDchar(8)8
False
UpdatorIDchar(8)8
False
CreateDatedatetime8
False
(getdate())
LastUpdatedatetime8
False
(getdate())
timestamptimestamp8
True
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK_SCReportProblemCodes: ReportID\ProblemCodeIDPK_SCReportProblemCodesReportID, ProblemCodeID
True
80
NameColumns
FK_SCReportProblemCodes_ProblemCodeID_SCProblemCodesProblemCodeID->[dbo].[SCProblemCodes].[ProblemCodeID]
FK_SCReportProblemCodes_ReportID_SCReportsReportID->[dbo].[SCReports].[ReportID]
CREATE TABLE [dbo].[SCReportProblemCodes]
(
[ReportID] [int] NOT NULL,
[ProblemCodeID] [int] NOT NULL,
[CreatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[UpdatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CreateDate] [datetime] NOT NULL CONSTRAINT [DF_SCReportProblemCodes_CreateDate] DEFAULT (getdate()),
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_SCReportProblemCodes_LastUpdate] DEFAULT (getdate()),
[timestamp] [timestamp] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SCReportProblemCodes] ADD CONSTRAINT [PK_SCReportProblemCodes] PRIMARY KEY CLUSTERED  ([ReportID], [ProblemCodeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SCReportProblemCodes] ADD CONSTRAINT [FK_SCReportProblemCodes_ProblemCodeID_SCProblemCodes] FOREIGN KEY ([ProblemCodeID]) REFERENCES [dbo].[SCProblemCodes] ([ProblemCodeID])
GO
ALTER TABLE [dbo].[SCReportProblemCodes] ADD CONSTRAINT [FK_SCReportProblemCodes_ReportID_SCReports] FOREIGN KEY ([ReportID]) REFERENCES [dbo].[SCReports] ([ReportID])
GO