Tables [dbo].[BiReportingViewHierarchy]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)56
Created9:23:26 AM Friday, December 7, 2018
Last Modified9:23:44 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_BiReportingViewHierarchy: BiReportingViewHierarchyIDBiReportingViewHierarchyIDint4
No
1 - 1
Foreign Keys FK_BiReportingViewHierarchy_BiReportingViewFID: [dbo].[BiReportingView].BiReportingViewFIDIndexes IX_BiReportingViewHierarchy_ParentChild: BiReportingParentViewFID\BiReportingViewFIDBiReportingViewFIDint4
No
Foreign Keys FK_BiReportingViewHierarchy_BiReportingParentViewFID: [dbo].[BiReportingView].BiReportingParentViewFIDIndexes IX_BiReportingViewHierarchy_ParentChild: BiReportingParentViewFID\BiReportingViewFIDBiReportingParentViewFIDint4
No
Parametersnvarchar(max)max
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK_BiReportingViewHierarchy: BiReportingViewHierarchyIDPK_BiReportingViewHierarchyBiReportingViewHierarchyID
Yes
IX_BiReportingViewHierarchy_ParentChildBiReportingParentViewFID, BiReportingViewFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_BiReportingViewHierarchy_BiReportingParentViewFIDBiReportingParentViewFID->[dbo].[BiReportingView].[BiReportingViewID]
FK_BiReportingViewHierarchy_BiReportingViewFIDBiReportingViewFID->[dbo].[BiReportingView].[BiReportingViewID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[BiReportingViewHierarchy]
(
[BiReportingViewHierarchyID] [int] NOT NULL IDENTITY(1, 1),
[BiReportingViewFID] [int] NOT NULL,
[BiReportingParentViewFID] [int] NOT NULL,
[Parameters] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[BiReportingViewHierarchy] ADD CONSTRAINT [PK_BiReportingViewHierarchy] PRIMARY KEY NONCLUSTERED  ([BiReportingViewHierarchyID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BiReportingViewHierarchy] ADD CONSTRAINT [IX_BiReportingViewHierarchy_ParentChild] UNIQUE NONCLUSTERED  ([BiReportingParentViewFID], [BiReportingViewFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BiReportingViewHierarchy] ADD CONSTRAINT [FK_BiReportingViewHierarchy_BiReportingParentViewFID] FOREIGN KEY ([BiReportingParentViewFID]) REFERENCES [dbo].[BiReportingView] ([BiReportingViewID])
GO
ALTER TABLE [dbo].[BiReportingViewHierarchy] ADD CONSTRAINT [FK_BiReportingViewHierarchy_BiReportingViewFID] FOREIGN KEY ([BiReportingViewFID]) REFERENCES [dbo].[BiReportingView] ([BiReportingViewID])
GO
GRANT SELECT ON  [dbo].[BiReportingViewHierarchy] TO [MssExec]
GRANT INSERT ON  [dbo].[BiReportingViewHierarchy] TO [MssExec]
GRANT DELETE ON  [dbo].[BiReportingViewHierarchy] TO [MssExec]
GRANT UPDATE ON  [dbo].[BiReportingViewHierarchy] TO [MssExec]
GO
Uses