Tables [dbo].[Reports]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)140
Created4:57:08 PM Thursday, September 7, 2006
Last Modified1:54:33 PM Wednesday, April 10, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_Reports: PrikeyPrikeyint4
No
1 - 1
MenuNamevarchar(425)425
No
ReportNamevarchar(425)425
No
ReportPathvarchar(425)425
Yes
Foreign Keys FK_Reports_ReportType: [dbo].[ReportType].ReportTypeFIDReportTypeFIDsmallint2
No
Foreign Keys FK_Reports_ReportRenderType: [dbo].[ReportRenderType].ReportRenderTypeFIDReportRenderTypeFIDint4
Yes
Foreign Keys FK_Reports_ReportArchiveType: [dbo].[ReportArchiveType].ReportArchiveTypeFIDReportArchiveTypeFIDint4
Yes
Foreign Keys FK_Reports_ReportSystemLocation: [dbo].[ReportSystemLocation].ReportSystemLocationFIDReportSystemLocationFIDint4
Yes
Inactivebit1
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_Reports: PrikeyPK_ReportsPrikey
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_Reports_ReportArchiveTypeReportArchiveTypeFID->[dbo].[ReportArchiveType].[ReportArchiveTypeID]
FK_Reports_ReportRenderTypeReportRenderTypeFID->[dbo].[ReportRenderType].[ReportRenderTypeID]
FK_Reports_ReportSystemLocationReportSystemLocationFID->[dbo].[ReportSystemLocation].[ReportSystemLocationID]
FK_Reports_ReportTypeReportTypeFID->[dbo].[ReportType].[ReportTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[Reports]
(
[Prikey] [int] NOT NULL IDENTITY(1, 1),
[MenuName] [varchar] (425) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ReportName] [varchar] (425) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ReportPath] [varchar] (425) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ReportTypeFID] [smallint] NOT NULL,
[ReportRenderTypeFID] [int] NULL,
[ReportArchiveTypeFID] [int] NULL,
[ReportSystemLocationFID] [int] NULL,
[Inactive] [bit] NOT NULL CONSTRAINT [DF_Reports_Inactive] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Reports] ADD CONSTRAINT [PK_Reports] PRIMARY KEY CLUSTERED  ([Prikey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Reports] ADD CONSTRAINT [FK_Reports_ReportArchiveType] FOREIGN KEY ([ReportArchiveTypeFID]) REFERENCES [dbo].[ReportArchiveType] ([ReportArchiveTypeID])
GO
ALTER TABLE [dbo].[Reports] ADD CONSTRAINT [FK_Reports_ReportRenderType] FOREIGN KEY ([ReportRenderTypeFID]) REFERENCES [dbo].[ReportRenderType] ([ReportRenderTypeID])
GO
ALTER TABLE [dbo].[Reports] ADD CONSTRAINT [FK_Reports_ReportSystemLocation] FOREIGN KEY ([ReportSystemLocationFID]) REFERENCES [dbo].[ReportSystemLocation] ([ReportSystemLocationID])
GO
ALTER TABLE [dbo].[Reports] ADD CONSTRAINT [FK_Reports_ReportType] FOREIGN KEY ([ReportTypeFID]) REFERENCES [dbo].[ReportType] ([ReportTypeID])
GO
GRANT SELECT ON  [dbo].[Reports] TO [MssExec]
GRANT INSERT ON  [dbo].[Reports] TO [MssExec]
GRANT DELETE ON  [dbo].[Reports] TO [MssExec]
GRANT UPDATE ON  [dbo].[Reports] TO [MssExec]
GO
Uses
Used By