Tables [dbo].[ReportingUserAccess]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created9:20:27 AM Friday, December 7, 2018
Last Modified9:20:46 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_ReportingUserAccess: ReportingUserAccessIDReportingUserAccessIDint4
No
1 - 1
Foreign Keys FK_ReportingUserAccess_ReportingUserFID: [dbo].[ReportingUser].ReportingUserFIDReportingUserFIDint4
No
Check Constraints CK_ReportingUserAccess_UserAccess : ([dbo].[UserIdInUserAccess]([UserID])=(0))Indexes IX_ReportingUserAccess_UserID: UserIDUserIDvarchar(32)32
No
Passwordvarbinary(128)128
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_ReportingUserAccess: ReportingUserAccessIDPK_ReportingUserAccessReportingUserAccessID
Yes
IX_ReportingUserAccess_UserIDUserID
Yes
Check Constraints Check Constraints
NameOn ColumnConstraint
CK_ReportingUserAccess_UserAccessUserID([dbo].[UserIdInUserAccess]([UserID])=(0))
Foreign Keys Foreign Keys
NameColumns
FK_ReportingUserAccess_ReportingUserFIDReportingUserFID->[dbo].[ReportingUser].[ReportingUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ReportingUserAccess]
(
[ReportingUserAccessID] [int] NOT NULL IDENTITY(1, 1),
[ReportingUserFID] [int] NOT NULL,
[UserID] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Password] [varbinary] (128) NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ReportingUserAccess] ADD CONSTRAINT [CK_ReportingUserAccess_UserAccess] CHECK (([dbo].[UserIdInUserAccess]([UserID])=(0)))
GO
ALTER TABLE [dbo].[ReportingUserAccess] ADD CONSTRAINT [PK_ReportingUserAccess] PRIMARY KEY CLUSTERED  ([ReportingUserAccessID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ReportingUserAccess] ADD CONSTRAINT [IX_ReportingUserAccess_UserID] UNIQUE NONCLUSTERED  ([UserID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ReportingUserAccess] ADD CONSTRAINT [FK_ReportingUserAccess_ReportingUserFID] FOREIGN KEY ([ReportingUserFID]) REFERENCES [dbo].[ReportingUser] ([ReportingUserID])
GO
GRANT SELECT ON  [dbo].[ReportingUserAccess] TO [MssExec]
GRANT INSERT ON  [dbo].[ReportingUserAccess] TO [MssExec]
GRANT DELETE ON  [dbo].[ReportingUserAccess] TO [MssExec]
GRANT UPDATE ON  [dbo].[ReportingUserAccess] TO [MssExec]
GO
Uses