mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Updated columns
Removed Id column that it is not required. Replaced types for Message and Level with the smaller type.
This commit is contained in:
+2
-7
@@ -1,7 +1,6 @@
|
||||
CREATE TABLE [Application].[Logs](
|
||||
[Id] [int] IDENTITY(1,1) NOT NULL,
|
||||
[Message] NVARCHAR(max) NULL,
|
||||
[Level] NVARCHAR(128) NULL,
|
||||
[Message] NVARCHAR(4000) NOT NULL,
|
||||
[Level] VARCHAR(16) NOT NULL,
|
||||
[EventTime] DATETIME2 (7) NOT NULL,
|
||||
[LogEvent] NVARCHAR(max) NULL,
|
||||
INDEX CCX_Application_Logs CLUSTERED COLUMNSTORE
|
||||
@@ -17,10 +16,6 @@ GO
|
||||
EXECUTE sp_addextendedproperty @name = N'Description', @value = N'Application logs that are stored in database', @level0type = N'SCHEMA', @level0name = N'Application', @level1type = N'TABLE', @level1name = N'Logs';
|
||||
|
||||
|
||||
GO
|
||||
EXECUTE sp_addextendedproperty @name = N'Description', @value = 'Numeric ID of a log entry', @level0type = N'SCHEMA', @level0name = N'Application', @level1type = N'TABLE', @level1name = N'Logs', @level2type = N'COLUMN', @level2name = N'Id';
|
||||
|
||||
|
||||
GO
|
||||
EXECUTE sp_addextendedproperty @name = N'Description', @value = 'Logged message', @level0type = N'SCHEMA', @level0name = N'Application', @level1type = N'TABLE', @level1name = N'Logs', @level2type = N'COLUMN', @level2name = N'Message';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user