-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcreate_dbmssql.sql
More file actions
14 lines (14 loc) · 882 Bytes
/
create_dbmssql.sql
File metadata and controls
14 lines (14 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CREATE TABLE <databaseName>.dbmssql(`DateTime` DateTime64(6,'Europe/Moscow'),
`duration` Int32,
`ProcessID` Int32,
`Level` Int32,
`ProcessName` String,
`ConnectID` Int32,
`User` String,
`dbpid` Int32,
-- `Sql` String, здоровенные куски текста
-- `planSQLText` String, здоровенные куски текста
`Context` String,
`message` String,
`file` String) ENGINE = MergeTree() PARTITION BY toYYYYMM(DateTime)
ORDER BY (DateTime);