-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdbo.XEVENT_LIST.sql
More file actions
63 lines (56 loc) · 2.11 KB
/
dbo.XEVENT_LIST.sql
File metadata and controls
63 lines (56 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
CREATE TABLE dbo.XEVENT_LIST
( ID tinyint IDENTITY(1,1) NOT NULL
,XEVENT_NAME varchar(255) NOT NULL
,FILE_PATH varchar(255) NULL
,LAST_DATE datetime NULL
,IS_ACTIVE bit NULL
)
;
GO
exec sp_addextendedproperty
@name = N'MS_Description',
@value = 'Ид. номер по порядку',
@level0type = N'SCHEMA', @level0name = 'dbo',
@level1type = N'TABLE', @level1name = 'XEVENT_LIST',
@level2type = N'COLUMN', @level2name = 'ID';
GO
exec sp_addextendedproperty
@name = N'MS_Description',
@value = 'Название эвента в системе',
@level0type = N'SCHEMA', @level0name = 'dbo',
@level1type = N'TABLE', @level1name = 'XEVENT_LIST',
@level2type = N'COLUMN', @level2name = 'XEVENT_NAME';
GO
exec sp_addextendedproperty
@name = N'MS_Description',
@value = 'Путь к файлу или название файла лога эвента',
@level0type = N'SCHEMA', @level0name = 'dbo',
@level1type = N'TABLE', @level1name = 'XEVENT_LIST',
@level2type = N'COLUMN', @level2name = 'FILE_PATH';
GO
exec sp_addextendedproperty
@name = N'MS_Description',
@value = 'Дата последней загрузки лога',
@level0type = N'SCHEMA', @level0name = 'dbo',
@level1type = N'TABLE', @level1name = 'XEVENT_LIST',
@level2type = N'COLUMN', @level2name = 'LAST_DATE';
GO
exec sp_addextendedproperty
@name = N'MS_Description',
@value = 'Статус активности эвента',
@level0type = N'SCHEMA', @level0name = 'dbo',
@level1type = N'TABLE', @level1name = 'XEVENT_LIST',
@level2type = N'COLUMN', @level2name = 'IS_ACTIVE';
GO
--==========================================
--вставка данных в таблицу
-- INSERT INTO dbo.XEVENT_LIST
-- ( EVENT_NAME
-- ,FILE_PATH
-- ,IS_ACTIVE
-- )
-- VALUES
-- ('DEADLOCK_MONITOR', 'DEADLOCK_MONITOR*.xel', 1),
-- ('LOGIN_APP_CONNECT', 'LOGIN_APP_CONNECT*.xel', 1),
-- --('QUERY_IO', 'QUERY_IO*.xel', 1),
-- --('QUERY_CPU', 'QUERY_CPU*.xel', 1)