USE [Elyse_DB] GO /****** Object: Table [user_restr].[authorisation_fail_log] Script Date: Fri 02-10-2026 8:29:34 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [user_restr].[authorisation_fail_log]( [primary_key] [bigint] IDENTITY(1,1) NOT NULL, [date_time] [datetime2](7) NOT NULL, [username] [nvarchar](255) NOT NULL, [sid_id] [bigint] NULL, [sid] [varbinary](100) NOT NULL, [privilege_type] [nvarchar](50) NOT NULL, [privilege_id] [bigint] NULL, [privilege_name] [nvarchar](50) NULL, [stored_procedure] [nvarchar](80) NOT NULL, [failure_type] [nvarchar](1000) NULL, CONSTRAINT [PK_authorisation_fail_log] PRIMARY KEY CLUSTERED ( [primary_key] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY] ) ON [PRIMARY] GO SET IDENTITY_INSERT [user_restr].[authorisation_fail_log] ON INSERT [user_restr].[authorisation_fail_log] ([primary_key], [date_time], [username], [sid_id], [sid], [privilege_type], [privilege_id], [privilege_name], [stored_procedure], [failure_type]) VALUES (1, CAST(N'2026-09-19T19:51:36.1511967' AS DateTime2), N'3680Tower2025\General', NULL, 0x0105000000000005150000005B32E43907DECAEC185CCC8FEC030000, N'Role', NULL, NULL, N'[internal].[usp_SEL_message] Message = NoPermission', N'Role checks failed to match at least one role') INSERT [user_restr].[authorisation_fail_log] ([primary_key], [date_time], [username], [sid_id], [sid], [privilege_type], [privilege_id], [privilege_name], [stored_procedure], [failure_type]) VALUES (2, CAST(N'2026-09-25T14:20:16.5957871' AS DateTime2), N'3680Tower2025\General', NULL, 0x0105000000000005150000005B32E43907DECAEC185CCC8FEC030000, N'Role', NULL, NULL, N'[internal].[usp_SEL_message] Message = NoPermission', N'Role checks failed to match at least one role') INSERT [user_restr].[authorisation_fail_log] ([primary_key], [date_time], [username], [sid_id], [sid], [privilege_type], [privilege_id], [privilege_name], [stored_procedure], [failure_type]) VALUES (3, CAST(N'2026-09-25T14:20:16.5957871' AS DateTime2), N'3680Tower2025\General', NULL, 0x0105000000000005150000005B32E43907DECAEC185CCC8FEC030000, N'Authorizer', NULL, NULL, N'[internal].[usp_AUTHENTICATE_authoriser]', N'SID not registered in SID List') INSERT [user_restr].[authorisation_fail_log] ([primary_key], [date_time], [username], [sid_id], [sid], [privilege_type], [privilege_id], [privilege_name], [stored_procedure], [failure_type]) VALUES (4, CAST(N'2026-09-25T14:20:16.5957871' AS DateTime2), N'3680Tower2025\General', NULL, 0x0105000000000005150000005B32E43907DECAEC185CCC8FEC030000, N'Authorizer', NULL, NULL, N'[internal].[usp_AUTHENTICATE_authoriser]', N'SID not registered in SID List') INSERT [user_restr].[authorisation_fail_log] ([primary_key], [date_time], [username], [sid_id], [sid], [privilege_type], [privilege_id], [privilege_name], [stored_procedure], [failure_type]) VALUES (5, CAST(N'2026-09-25T14:20:16.5957871' AS DateTime2), N'3680Tower2025\General', NULL, 0x0105000000000005150000005B32E43907DECAEC185CCC8FEC030000, N'Role', NULL, NULL, N'[internal].[usp_SEL_message] Message = NoPermission', N'Role checks failed to match at least one role') INSERT [user_restr].[authorisation_fail_log] ([primary_key], [date_time], [username], [sid_id], [sid], [privilege_type], [privilege_id], [privilege_name], [stored_procedure], [failure_type]) VALUES (6, CAST(N'2026-09-25T14:20:16.5957871' AS DateTime2), N'3680Tower2025\General', NULL, 0x0105000000000005150000005B32E43907DECAEC185CCC8FEC030000, N'Role', NULL, NULL, N'[internal].[usp_SEL_message] Message = NoPermission', N'Role checks failed to match at least one role') INSERT [user_restr].[authorisation_fail_log] ([primary_key], [date_time], [username], [sid_id], [sid], [privilege_type], [privilege_id], [privilege_name], [stored_procedure], [failure_type]) VALUES (7, CAST(N'2026-09-25T14:20:16.5957871' AS DateTime2), N'3680Tower2025\General', NULL, 0x0105000000000005150000005B32E43907DECAEC185CCC8FEC030000, N'Role', NULL, NULL, N'[internal].[usp_SEL_message] Message = NoPermission', N'Role checks failed to match at least one role') INSERT [user_restr].[authorisation_fail_log] ([primary_key], [date_time], [username], [sid_id], [sid], [privilege_type], [privilege_id], [privilege_name], [stored_procedure], [failure_type]) VALUES (8, CAST(N'2026-09-25T14:20:16.6675533' AS DateTime2), N'3680Tower2025\General', NULL, 0x0105000000000005150000005B32E43907DECAEC185CCC8FEC030000, N'Authorizer', NULL, NULL, N'[internal].[usp_AUTHENTICATE_authoriser]', N'SID not registered in SID List') INSERT [user_restr].[authorisation_fail_log] ([primary_key], [date_time], [username], [sid_id], [sid], [privilege_type], [privilege_id], [privilege_name], [stored_procedure], [failure_type]) VALUES (9, CAST(N'2026-09-25T14:20:16.6675533' AS DateTime2), N'3680Tower2025\General', NULL, 0x0105000000000005150000005B32E43907DECAEC185CCC8FEC030000, N'Role', NULL, NULL, N'[internal].[usp_SEL_message] Message = NoPermission', N'Role checks failed to match at least one role') INSERT [user_restr].[authorisation_fail_log] ([primary_key], [date_time], [username], [sid_id], [sid], [privilege_type], [privilege_id], [privilege_name], [stored_procedure], [failure_type]) VALUES (10, CAST(N'2026-09-25T14:20:16.7091265' AS DateTime2), N'3680Tower2025\General', NULL, 0x0105000000000005150000005B32E43907DECAEC185CCC8FEC030000, N'Role', NULL, NULL, N'[internal].[usp_SEL_message] Message = NoPermission', N'Role checks failed to match at least one role') INSERT [user_restr].[authorisation_fail_log] ([primary_key], [date_time], [username], [sid_id], [sid], [privilege_type], [privilege_id], [privilege_name], [stored_procedure], [failure_type]) VALUES (11, CAST(N'2026-09-27T18:32:10.6464467' AS DateTime2), N'3680Tower2025\General', NULL, 0x0105000000000005150000005B32E43907DECAEC185CCC8FEC030000, N'Role', NULL, NULL, N'[internal].[usp_SEL_message] Message = NoPermission', N'Role checks failed to match at least one role') INSERT [user_restr].[authorisation_fail_log] ([primary_key], [date_time], [username], [sid_id], [sid], [privilege_type], [privilege_id], [privilege_name], [stored_procedure], [failure_type]) VALUES (12, CAST(N'2026-09-27T18:38:58.5008384' AS DateTime2), N'3680Tower2025\General', NULL, 0x0105000000000005150000005B32E43907DECAEC185CCC8FEC030000, N'Role', NULL, NULL, N'[internal].[usp_SEL_message] Message = NoPermission', N'Role checks failed to match at least one role') INSERT [user_restr].[authorisation_fail_log] ([primary_key], [date_time], [username], [sid_id], [sid], [privilege_type], [privilege_id], [privilege_name], [stored_procedure], [failure_type]) VALUES (13, CAST(N'2026-09-28T18:55:10.5488586' AS DateTime2), N'3680Tower2025\General', NULL, 0x0105000000000005150000005B32E43907DECAEC185CCC8FEC030000, N'Role', NULL, NULL, N'[internal].[usp_SEL_message] Message = NoPermission', N'Role checks failed to match at least one role') SET IDENTITY_INSERT [user_restr].[authorisation_fail_log] OFF GO ALTER TABLE [user_restr].[authorisation_fail_log] ADD CONSTRAINT [DF_authorisation_fail_log_date_time] DEFAULT (sysdatetime()) FOR [date_time] GO ALTER TABLE [user_restr].[authorisation_fail_log] ADD CONSTRAINT [DF_authorisation_fail_log_username] DEFAULT (original_login()) FOR [username] GO ALTER TABLE [user_restr].[authorisation_fail_log] ADD CONSTRAINT [DF_authorisation_fail_log_sid] DEFAULT (suser_sid(original_login())) FOR [sid] GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Records failed authorisation attempts. COPYRIGHT NOTICE This database schema and stored procedures are protected by copyright. Copyright. Silkwood Software Pty. Ltd. 2026' , @level0type=N'SCHEMA',@level0name=N'user_restr', @level1type=N'TABLE',@level1name=N'authorisation_fail_log' GO