{"id":274094,"date":"2016-02-11T15:50:03","date_gmt":"2016-02-11T12:50:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=274094"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=274094","title":{"rendered":"\u0427\u0442\u043e \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u0435 DEFAULT TRACE?"},"content":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/c20\/dff\/841\/c20dff841cb74ee68676f2499f76dc45.jpg\" align=\"left\" height=\"383\"\/>\u0427\u0430\u0441\u0442\u043e \u043c\u043d\u0435 \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430. \u0421\u0440\u0435\u0434\u043d\u0435\u043d\u044c\u043a\u0438\u0439 \u043e\u0444\u0438\u0441, \u043c\u043e\u043d\u0438\u043a <i>943N<\/i> \u0438 \u043e\u0431\u043e\u0433\u0440\u0435\u0432\u0430\u0442\u0435\u043b\u044c <i>Pentium D<\/i> \u043f\u043e\u0434 \u043d\u043e\u0433\u0430\u043c\u0438. \u041a\u0430\u043a \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b \u0438\u0437 \u043d\u0438\u043e\u0442\u043a\u0443\u0434\u0430 \u0411\u043e\u0440\u0438\u0441 (\u043d\u0435\u0442\u2026 \u043d\u0435 \u0411\u043e\u0440\u0438\u0441-\u0431\u0440\u0438\u0442\u0432\u0430) \u0441 \u043b\u0438\u043d\u0435\u0439\u043a\u043e\u0439 \u0432 \u0440\u0443\u043a\u0430\u0445 \u0438 \u043d\u0430\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e \u043f\u0440\u043e\u0441\u0438\u043b \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u00ab\u0431\u043e\u043b\u044c\u043d\u043e\u00bb <i>SQL Server<\/i>.<\/p>\n<p>  \u0418\u043c\u0435\u043d\u043d\u043e \u0432 \u0442\u0435 \u0434\u0430\u043b\u0435\u043a\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0430 \u044f \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0444\u0430\u0439\u043b\u0435\u0440\u043e\u043c. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0442\u0440\u0435\u0439\u0441\u044b \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043e\u0447\u0435\u043d\u044c \u043a\u0441\u0442\u0430\u0442\u0438 \u043f\u0440\u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0438 \u043f\u043e\u0438\u0441\u043a\u0435 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u041f\u043e\u0442\u043e\u043c \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u044f \u043e\u0442\u043a\u0440\u044b\u043b <i>DMV<\/i> \u0438 <i>XEvents<\/i>\u2026 \u0438 \u043f\u0440\u043e\u0444\u0430\u0439\u043b\u0435\u0440\u043e\u043c \u0441\u0442\u0430\u043b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0435\u0436\u0435. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0443\u043f\u043a\u0430 \u043f\u0440\u043e\u0441\u0442\u0430 \u2013 \u0442\u0440\u0435\u0439\u0441\u044b \u043e\u0447\u0435\u043d\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0435\u043c\u043a\u0438\u0435.<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e, \u0434\u0430\u043d\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u0440\u0435\u0436\u0434\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u0434\u0430\u0432\u0430\u0442\u044c \u0430\u043d\u0430\u0444\u0435\u043c\u0435. \u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 <i>2005<\/i> \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 <i>SQL Server<\/i> \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043b\u0435\u0433\u043a\u043e\u0432\u0435\u0441\u043d\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0442\u0440\u0435\u0439\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u0440\u0430\u043d\u0438\u0442 \u0432 \u0441\u0435\u0431\u0435 \u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u043d \u0432 \u043f\u0430\u043f\u043a\u0435 \u0433\u0434\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d <i>SQL Server<\/i> \u0438 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043f\u044f\u0442\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c <i>trc<\/i>. \u041f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u0442\u0430\u0440\u0442\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u0442\u0440\u0435\u0439\u0441\u0430, \u0430 \u0441\u0430\u043c\u044b\u0439 \u0441\u0442\u0430\u0440\u044b\u0439 \u0437\u0430\u0442\u0438\u0440\u0430\u0435\u0442\u0441\u044f. \u0417\u0430\u043f\u0438\u0441\u044c \u043d\u043e\u0432\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u0434\u0435\u0442 \u0432 \u0441\u0430\u043c\u044b\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0444\u0430\u0439\u043b, \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d 20 \u041c\u0431. \u041f\u0440\u0438 \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b. \u041f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0435\u043b\u044c\u0437\u044f.<\/p>\n<p>  \u0420\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0438\u043b\u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c:<\/p>\n<pre><code class=\"sql\">EXEC sys.sp_configure 'show advanced options', 1 GO RECONFIGURE WITH OVERRIDE GO EXEC sys.sp_configure 'default trace enabled', 0 GO RECONFIGURE WITH OVERRIDE GO <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u0442\u0440\u0435\u0439\u0441 \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c:<\/p>\n<pre><code class=\"sql\">SELECT name, value FROM sys.configurations WHERE configuration_id = 1568 <\/code><\/pre>\n<p>  \u041f\u0443\u0442\u044c \u043a \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u043c\u0443 \u0442\u0440\u0435\u0439\u0441\u0443:<\/p>\n<pre><code class=\"sql\">SELECT [path], start_time, last_event_time, event_count FROM sys.traces WHERE is_default = 1 <\/code><\/pre>\n<p>  \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435\u2026 \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0437\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043c\u043e\u0433\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0432 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u043c \u0442\u0440\u0435\u0439\u0441\u0435:<\/p>\n<pre><code class=\"sql\">SELECT e.trace_event_id, e.name, c.category_id, c.name FROM sys.trace_categories c JOIN sys.trace_events e ON c.category_id = e.category_id <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"sql\">trace_event_id name                       category_id name -------------- -------------------------- ----------- ----------------------------------- 196            CLR                        20          Assembly Load 92             Database                   2           Data File Auto Grow 93             Database                   2           Log File Auto Grow 94             Database                   2           Data File Auto Shrink 95             Database                   2           Log File Auto Shrink 79             Errors and Warnings        3           Missing Column Statistics 80             Errors and Warnings        3           Missing Join Predicate 67             Errors and Warnings        3           Execution Warnings 69             Errors and Warnings        3           Sort Warnings 55             Errors and Warnings        3           Hash Warning 21             Errors and Warnings        3           EventLog 22             Errors and Warnings        3           ErrorLog 213            Errors and Warnings        3           Database Suspect Data Page 214            Errors and Warnings        3           CPU threshold exceeded 46             Objects                    5           Object:Created 47             Objects                    5           Object:Deleted 164            Objects                    5           Object:Altered ... <\/code><\/pre>\n<p>  \u2026 \u0438 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043f\u043e\u043b\u044c\u0437\u0443 \u043e\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438\u0437 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0433\u043e \u0442\u0440\u0435\u0439\u0441\u0430.<\/p>\n<p>  <b>1. Auto Grow Events<\/b><\/p>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043d\u0435 \u0441\u0435\u043a\u0440\u0435\u0442, \u0447\u0442\u043e \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u043e\u0439 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u043d\u0430 \u0434\u0438\u0441\u043a\u0435. \u0412 \u0444\u0430\u0439\u043b\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u043b\u043e\u0433\u0435. \u041d\u0435 \u0431\u0443\u0434\u0435\u043c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u2026 \u043d\u043e \u043e\u0431\u0449\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043c\u0435\u0441\u0442\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0430\u0432\u0442\u043e-\u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430. \u0412 \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0444\u0430\u0439\u043b \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438 <i>SQL Server<\/i> \u0431\u0443\u0434\u0435\u0442 \u0436\u0434\u0430\u0442\u044c \u043f\u043e\u043a\u0430 \u0434\u0438\u0441\u043a\u043e\u0432\u0430\u044f \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044e \u043c\u0435\u0441\u0442\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435.<\/p>\n<p>  \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, <i>SQL Server<\/i> \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043d\u043e\u0432\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u043d\u0443\u043b\u044f\u043c\u0438. \u0414\u043b\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0430\u043a\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0430 \u0441\u0447\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f <a href=\"https:\/\/habrahabr.ru\/post\/270699\/\"><i>Instant File Initialization<\/i><\/a>. \u041d\u043e \u0434\u043b\u044f \u043b\u043e\u0433 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0438 \u044d\u0442\u043e \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439 \u043e\u0441\u043d\u043e\u0432\u0435 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u043e <i>Auto Grow<\/i>: <\/p>\n<pre><code class=\"sql\">SELECT       StartTime     , Duration = Duration \/ 1000     , DatabaseName = DB_NAME(DatabaseID)     , [FileName]     , GrowType = CASE WHEN EventClass = 92 THEN 'DATA' ELSE 'LOG' END FROM sys.traces i CROSS APPLY sys.fn_trace_gettable([path], DEFAULT) t WHERE t.EventClass IN (             92, -- Data File Auto Grow             93  -- Log File Auto Grow         )      AND i.is_default = 1 <\/code><\/pre>\n<p>  \u0418 \u0435\u0441\u043b\u0438 \u0438\u0445 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0435\u0437\u043a\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f:<\/p>\n<pre><code class=\"sql\">StartTime                EndTime                  Duration    DatabaseName           FileName                   GrowType ------------------------ ------------------------ ----------- ---------------------- -------------------------- -------- 2016-01-16 02:52:48.127  2016-01-16 02:52:48.163  36          tempdb                 templog                    LOG 2016-01-16 02:52:49.090  2016-01-16 02:52:49.140  50          tempdb                 tempdev                    DATA 2016-01-16 02:52:50.687  2016-01-16 02:52:50.903  216         tempdb                 tempdev                    DATA 2016-01-16 02:52:51.213  2016-01-16 02:52:51.257  43          tempdb                 tempdev                    DATA 2016-01-16 02:52:52.300  2016-01-16 02:52:53.060  760         tempdb                 tempdev                    DATA 2016-01-16 02:52:54.090  2016-01-16 02:52:54.360  270         tempdb                 tempdev                    DATA 2016-01-16 02:52:55.407  2016-01-16 02:52:55.680  273         tempdb                 tempdev                    DATA 2016-01-16 02:52:56.720  2016-01-16 02:52:57.007  286         tempdb                 tempdev                    DATA 2016-01-16 02:52:58.047  2016-01-16 02:52:58.253  206         tempdb                 tempdev                    DATA 2016-01-16 02:52:59.317  2016-01-16 02:52:59.830  513         tempdb                 tempdev                    DATA 2016-01-16 02:53:01.917  2016-01-16 02:53:02.280  363         tempdb                 tempdev                    DATA 2016-01-16 02:53:03.387  2016-01-16 02:53:03.687  300         tempdb                 tempdev                    DATA 2016-01-16 02:53:05.757  2016-01-16 02:53:06.060  303         tempdb                 tempdev                    DATA 2016-01-16 02:53:08.143  2016-01-16 02:53:08.343  200         tempdb                 tempdev                    DATA 2016-01-16 02:53:10.440  2016-01-16 02:53:10.500  60          tempdb                 tempdev                    DATA 2016-01-16 02:53:12.703  2016-01-16 02:53:13.053  350         tempdb                 tempdev                    DATA 2016-01-16 02:53:15.150  2016-01-16 02:53:15.520  370         tempdb                 tempdev                    DATA 2016-01-16 02:53:17.653  2016-01-16 02:53:17.897  243         tempdb                 tempdev                    DATA 2016-01-16 02:53:21.030  2016-01-16 02:53:21.477  446         tempdb                 tempdev                    DATA 2016-01-16 02:53:25.490  2016-01-16 02:53:25.653  163         tempdb                 tempdev                    DATA 2016-01-16 02:53:30.870  2016-01-16 02:53:31.157  286         tempdb                 tempdev                    DATA 2016-01-16 02:53:36.707  2016-01-16 02:53:37.133  426         tempdb                 tempdev                    DATA 2016-01-16 02:53:42.663  2016-01-16 02:53:43.040  376         tempdb                 tempdev                    DATA 2016-01-16 02:53:49.787  2016-01-16 02:53:49.907  120         tempdb                 tempdev                    DATA 2016-01-16 02:53:58.640  2016-01-16 02:53:58.840  200         tempdb                 tempdev                    DATA 2016-01-16 02:54:06.870  2016-01-16 02:54:07.057  186         tempdb                 tempdev                    DATA 2016-01-16 02:54:17.063  2016-01-16 02:54:17.107  43          tempdb                 tempdev                    DATA 2016-01-16 02:54:27.363  2016-01-16 02:54:27.370  6           tempdb                 tempdev                    DATA 2016-01-16 02:54:42.107  2016-01-16 02:54:42.110  3           tempdb                 tempdev                    DATA 2016-01-16 02:55:04.883  2016-01-16 02:55:04.913  30          tempdb                 tempdev                    DATA 2016-01-16 14:19:47.607  2016-01-16 14:19:47.670  63          AdventureWorks2012     AdventureWorks2012_Log     LOG 2016-01-16 14:19:47.820  2016-01-16 14:19:47.840  20          AdventureWorks2012     AdventureWorks2012_Log     LOG 2016-01-16 16:51:32.980  2016-01-16 16:51:33.080  100         tempdb                 tempdev                    DATA 2016-02-16 17:31:02.260  2016-02-16 17:31:02.327  66          tempdb                 templog                    LOG ... <\/code><\/pre>\n<p>  \u0422\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u0444\u0430\u0439\u043b\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435, \u043d\u043e \u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0431\u0430\u0437\u043e\u0439:<\/p>\n<pre><code class=\"sql\">SELECT       GrowType = CASE WHEN EventClass = 92 THEN 'DATA' ELSE 'LOG' END     , GrowCount = COUNT(1)     , Duration = SUM(Duration) \/ 1000 FROM sys.traces i CROSS APPLY sys.fn_trace_gettable([path], DEFAULT) t WHERE t.EventClass IN (92, 93)      AND i.is_default = 1     AND t.DatabaseID = DB_ID('tempdb') GROUP BY EventClass <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"sql\">GrowType GrowCount   Duration -------- ----------- -------------------- DATA     36          7296 LOG      2           102 <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u043e\u0439 \u0431\u0430\u0437\u044b:<\/p>\n<pre><code class=\"sql\">USE tempdb GO  SELECT       d.type_desc     , d.name     , d.physical_name     , current_size_mb = ROUND(d.size * 8. \/ 1000, 0)     , initial_size_mb = ROUND(m.size * 8. \/ 1000, 0)      , auto_grow =         CASE WHEN d.is_percent_growth = 1             THEN CAST(d.growth AS VARCHAR(10)) + '%'             ELSE CAST(ROUND(d.growth * 8. \/ 1000, 0) AS VARCHAR(10)) + 'MB'         END FROM sys.database_files d JOIN sys.master_files m ON d.[file_id] = m.[file_id] WHERE m.database_id = DB_ID('tempdb') <\/code><\/pre>\n<p>  \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 8 \u041c\u0431 \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 1 \u041c\u0431 \u0434\u043b\u044f \u043b\u043e\u0433\u0430:<\/p>\n<pre><code class=\"sql\">type_desc   name       physical_name                  current_size_mb    initial_size_mb    auto_grow ----------- ---------- ------------------------------ ------------------ ------------------ ------------ ROWS        tempdev    D:\\SQL_2012\\DATA\\tempdb.mdf    258.000000         8.000000           10% LOG         templog    D:\\SQL_2012\\DATA\\templog.ldf   3.000000           1.000000           1MB <\/code><\/pre>\n<p>  \u2026 \u0447\u0435\u0433\u043e \u044f\u0432\u043d\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0435\u0441\u043b\u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0441 \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0435 <i>SQL Server<\/i> <i>tempdb<\/i> \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f. \u0412 \u0441\u0443\u0445\u043e\u043c \u043e\u0441\u0442\u0430\u0442\u043a\u0435, \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0441\u0442\u0430\u0440\u0442\u0435 \u043c\u044b \u043e\u043f\u044f\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0444\u0430\u0439\u043b \u0432 9 \u041c\u0431, \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u043d\u043e\u0432\u0443\u044e \u043f\u043e\u0440\u0446\u0438\u044e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u043c \u0442\u0440\u0435\u0439\u0441\u0435.<\/p>\n<p>  \u041a\u0430\u043a\u043e\u0439 \u0432\u044b\u0445\u043e\u0434 \u0438\u0437 \u044d\u0442\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438? \u0421\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0434\u043b\u044f \u043d\u0438\u0445:<\/p>\n<pre><code class=\"sql\">SELECT       s.[file_id]     , s.name     , size = CAST(s.size * 8. \/ 1024 AS DECIMAL(18,2))     , space_used = CAST(t.space_used * 8. \/ 1024 AS DECIMAL(18,2))     , free_space = CAST((s.size - t.space_used) * 8. \/ 1024 AS DECIMAL(18,2))     , used_percent = CAST(t.space_used * 100. \/ s.size AS DECIMAL(18,2))     , s.max_size     , s.growth     , s.is_percent_growth FROM sys.database_files s CROSS APPLY (     SELECT space_used = FILEPROPERTY(s.name, 'SpaceUsed') ) t <\/code><\/pre>\n<p>  <b>2. Auto Shrink Events<\/b><\/p>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u0443\u0436\u0435 \u043f\u0438\u0441\u0430\u043b \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043f\u0446\u0438\u044f <a href=\"https:\/\/habrahabr.ru\/post\/275873\/\"><i>AUTO_CLOSE<\/i><\/a> \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u0422\u0430\u043a \u0432\u043e\u0442 <i>AUTO_SHRINK<\/i> \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0435\u0449\u0435 \u0445\u0443\u0436\u0435\u2026 \u041a\u0430\u0436\u0434\u044b\u0439 30 \u043c\u0438\u043d\u0443\u0442 <i>SQL Server<\/i> \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0443\u0441\u0435\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u0432 \u0444\u0430\u0439\u043b\u0430\u0445 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445. \u0414\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0435\u043c\u043a\u0438\u0439 \u0438 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u043a \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435. \u041f\u0440\u0438 \u0443\u0441\u0435\u0447\u0435\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432, \u0447\u0442\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0438 \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.<\/p>\n<p>  \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e\u2026 \u0423\u0434\u0430\u043b\u0438\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u2013 \u0443\u0441\u0435\u0447\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430. \u0412\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u043d\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u2013 \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e \u043c\u0435\u0441\u0442\u0430 \u0438 <i>SQL Server<\/i> \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430. \u0423\u0434\u0430\u043b\u0438\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043e\u043f\u044f\u0442\u044c \u0432\u0441\u0435 \u043f\u043e-\u043d\u043e\u0432\u043e\u043c\u0443\u2026<\/p>\n<pre><code class=\"sql\">SELECT       StartTime     , EndTime     , Duration = Duration \/ 1000     , DatabaseName = DB_NAME(DatabaseID)     , [FileName]     , GrowType = CASE WHEN EventClass = 94 THEN 'DATA' ELSE 'LOG' END     , NTDomainName     , ApplicationName     , LoginName     , TextData     , IsSystem FROM sys.traces i CROSS APPLY sys.fn_trace_gettable([path], DEFAULT) t WHERE t.EventClass IN (             94, -- Data File Auto Shrink             95  -- Log File Auto Shrink         )      AND i.is_default = 1 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"sql\">StartTime               EndTime                 Duration    DatabaseName              FileName                 GrowType ----------------------- ----------------------- ----------- ------------------------- ------------------------ -------- 2016-02-10 11:57:54.333 2016-02-10 11:57:54.450 116         AdventureWorks2012        AdventureWorks2012_Log   LOG 2016-02-10 14:58:21.087 2016-02-10 14:58:21.200 113         AdventureWorks2012        AdventureWorks2012_Log   LOG 2016-02-10 19:30:02.350 2016-02-10 19:30:02.463 113         AdventureWorks2012        AdventureWorks2012_Log   LOG 2016-02-10 21:00:26.083 2016-02-10 21:00:26.100 16          AdventureWorks2012        AdventureWorks2012_Log   LOG <\/code><\/pre>\n<p>  \u041e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u0434\u0430\u043d\u043d\u0443\u044e \u043e\u043f\u0446\u0438\u044e \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0442\u044c:<\/p>\n<pre><code class=\"sql\">SELECT 'ALTER DATABASE ' + QUOTENAME(name) + ' SET AUTO_SHRINK OFF WITH NO_WAIT;' FROM sys.databases WHERE is_auto_shrink_on = 1 <\/code><\/pre>\n<p>  <b>3. DBCC Events<\/b><\/p>\n<p>  \u0415\u0449\u0435 \u043e\u0434\u043d\u0430 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0433\u043e \u0442\u0440\u0435\u0439\u0441\u0430 \u2013 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043a\u0442\u043e \u0438 \u043a\u043e\u0433\u0434\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b <i>DBCC<\/i> \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u0420\u0443\u0433\u0430\u0442\u044c \u0437\u0430 <i>DBCC CHECKDB<\/i> \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442, \u043d\u043e \u0432\u043e\u0442 \u0435\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0435 \u0431\u0435\u0437 \u0443\u043c\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442:<\/p>\n<pre><code class=\"sql\">DBCC SHRINKDATABASE DBCC FREEPROCCACHE DBCC DROPCLEANBUFFERS <\/code><\/pre>\n<p>  \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u044d\u0442\u043e \u043b\u0435\u0433\u043a\u043e \u043e\u0442\u0441\u043b\u0435\u0434\u0438\u0442\u044c:<\/p>\n<pre><code class=\"sql\">SELECT       t.TextData     , t.ApplicationName     , t.LoginName     , t.StartTime FROM sys.traces i CROSS APPLY sys.fn_trace_gettable([path], DEFAULT) t WHERE i.is_default = 1     AND t.EventClass = 116 -- Audit DBCC Event     AND t.ApplicationName IS NOT NULL <\/code><\/pre>\n<p>  \u0438 \u043a\u043e\u0435 \u0441 \u043a\u0435\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u043f\u0440\u043e\u0444\u0438\u043b\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0431\u0435\u0441\u0435\u0434\u0443 \u043e \u043f\u043e\u043b\u044c\u0437\u0435 \u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432 \u0443\u0433\u043b\u0443 \u043d\u0430 \u0433\u0440\u0435\u0447\u043a\u0435: <\/p>\n<pre><code class=\"sql\">TextData                ApplicationName                         LoginName    StartTime                ----------------------- --------------------------------------  -----------  -----------------------  DBCC SHRINKDATABASE(1)  Microsoft SQL Server Management Studio  PC\\IgorS     2016-02-10 20:03:46.307  DBCC FREEPROCCACHE      Microsoft SQL Server Management Studio  PC\\IgorS     2016-02-10 20:03:43.430  DBCC DROPCLEANBUFFERS   Microsoft SQL Server Management Studio  PC\\IgorS     2016-02-10 20:03:44.767  <\/code><\/pre>\n<p>  <b>4. Errors and Warnings Events<\/b><\/p>\n<p>  \u0412 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438, \u043a\u043e\u0433\u0434\u0430 <i>SQL Server<\/i> \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0451\u043c\u0430 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0432 <i>tempdb<\/i>. \u0422\u0430\u043a\u043e\u0435 \u0436\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c \u0431\u044b\u043b\u0430 \u0441\u0434\u0435\u043b\u0430\u043b\u0430 \u043d\u0435\u0432\u0435\u0440\u043d\u0430\u044f \u043e\u0446\u0435\u043d\u043a\u0430 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0442\u0440\u043e\u043a. <\/p>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043f\u043b\u0430\u043d \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430:<\/p>\n<pre><code class=\"sql\">SELECT * FROM Sales.SalesOrderHeader WHERE DueDate &gt; ShipDate ORDER BY OrderDate DESC <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/9e4\/691\/1d4\/9e46911d4caf47d4916e1b45d30cdfd2.png\"\/><\/p>\n<p>  \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044e \u0438\u0437 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0433\u043e \u0442\u0440\u0435\u0439\u0441\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0442\u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b:<\/p>\n<pre><code class=\"sql\">SELECT TOP(10)       EventName = e.name     , t.TextData     , t.ApplicationName     , t.LoginName     , t.StartTime     , DatabaseName = DB_NAME(t.DatabaseID) FROM sys.traces i CROSS APPLY sys.fn_trace_gettable([path], DEFAULT) t JOIN sys.trace_events e ON e.trace_event_id = t.EventClass WHERE i.is_default = 1     AND e.category_id = 3 ORDER BY t.StartTime DESC <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"sql\">EventName          TextData    ApplicationName                                      LoginName     StartTime               DatabaseName ------------------ ----------- ---------------------------------------------------- ------------- ----------------------- --------------------- Sort Warnings      NULL        Microsoft SQL Server Management Studio - Query       PC\\SergeyS    2016-02-11 13:06:44.867 AdventureWorks2012 <\/code><\/pre>\n<p>  \u041d\u0430\u0439\u0442\u0438 \u0438\u0445 \u043f\u043b\u0430\u043d \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438 \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441:<\/p>\n<pre><code class=\"sql\">USE AdventureWorks2012 GO SELECT TOP(5)       p.query_plan     , e.[text]     , qyery_cost = p.query_plan.value(             '(\/*:ShowPlanXML\/*:BatchSequence\/*:Batch\/*:Statements\/*:StmtSimple\/@StatementSubTreeCost)[1]',             'FLOAT'         )     , s.last_execution_time     , last_exec_ms = s.last_worker_time \/ 1000     , s.execution_count FROM sys.dm_exec_query_stats s CROSS APPLY sys.dm_exec_query_plan(s.plan_handle) p CROSS APPLY sys.dm_exec_sql_text(s.plan_handle) e WHERE e.[text] NOT LIKE '%sys%'     AND s.last_execution_time &gt;= DATEADD(MS, -2500, '2016-02-10 19:41:45.983')     AND e.[dbid] = DB_ID() ORDER BY s.last_execution_time <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"sql\">query_plan                           text                                      qyery_cost  last_execution_time     last_exec_ms   execution_count ------------------------------------ ----------------------------------------- ----------- ----------------------- -------------- ---------------- &lt;ShowPlanXML xmlns=&quot;http:\/\/schem...  SELECT * FROM Sales.SalesOrderHeader...   1,10126     2016-02-11 13:06:44.850 1538           1 <\/code><\/pre>\n<p>  \u041a \u0441\u043b\u043e\u0432\u0443 \u0441\u043a\u0430\u0436\u0443, \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043b\u0430\u043d\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0447\u0435\u0440\u0435\u0437 <i>DMV<\/i>. \u041e\u043d\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 <i>Post Query Execution Showplan<\/i>, \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 <i>Trace event<\/i>, \u0438\u043b\u0438 \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435 <i>SET STATISTICS XML ON<\/i>. \u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 <i>SQL Server 2012<\/i> \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0446\u0435\u043b\u0435\u0439 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043d\u043e\u0432\u044b\u0439 <i>XEvent<\/i> \u2013 <i>post_query_execution_showplan<\/i>.<\/p>\n<p>  \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0442\u0432\u043b\u0451\u043a\u0441\u044f\u2026 \u041c\u0435\u043d\u044f \u043b\u0438\u0447\u043d\u043e \u0440\u0430\u0434\u0443\u0435\u0442, \u0447\u0442\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"sql\">SELECT DISTINCT d.SalesOrderID, d.UnitPrice, h.OrderDate FROM Sales.SalesOrderHeader h JOIN Sales.SalesOrderDetail d ON h.SalesOrderID = d.SalesOrderID WHERE h.DueDate &gt; h.ShipDate <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/b4f\/c39\/f7d\/b4fc39f7dd704eef9c006d3fd1fadd0a.png\"\/><\/p>\n<pre><code class=\"sql\">EventName        TextData    ApplicationName                                   LoginName     StartTime               DatabaseName ---------------- ----------- ------------------------------------------------- ------------- ----------------------- --------------------- Hash Warning     NULL        Microsoft SQL Server Management Studio - Query    PC\\SergeyS    2016-02-11 13:14:44.433 AdventureWorks2012 <\/code><\/pre>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e \u043e\u0448\u0438\u0431\u043a\u0435 \u0437\u0430\u0431\u044b\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u043b\u044f \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0438\u0434\u0435\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"sql\">SELECT * FROM Sales.Currency c, Sales.CountryRegionCurrency r --WHERE c.CurrencyCode = r.CurrencyCode <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f8f\/1d6\/202\/f8f1d62028cb4914b5669e9173b24e7a.png\"\/><\/p>\n<pre><code class=\"sql\">EventName               TextData    ApplicationName                                   LoginName     StartTime               DatabaseName ----------------------- ----------- ------------------------------------------------- ------------- ----------------------- --------------------- Missing Join Predicate  NULL        Microsoft SQL Server Management Studio - Query    PC\\SergeyS    2016-02-11 13:18:20.507 AdventureWorks2012 <\/code><\/pre>\n<p>  \u0438\u043b\u0438, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u0435 \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0438\u0434\u0435\u0442 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430:<\/p>\n<pre><code class=\"sql\">SELECT DatabaseLogID FROM dbo.DatabaseLog WHERE PostTime = '2012-03-14 13:14:18.847' <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/837\/e9c\/6ef\/837e9c6ef53947ed88e01792809ddc7b.png\"\/><\/p>\n<pre><code class=\"sql\">EventName                   TextData                                                         ApplicationName                                   LoginName       StartTime               DatabaseName --------------------------- ---------------------------------------------------------------- ------------------------------------------------- --------------- ----------------------- ---------------------- Missing Column Statistics   NO STATS:([AdventureWorks2012].[dbo].[DatabaseLog].[PostTime])   Microsoft SQL Server Management Studio - Query    PC\\SergeyS      2016-02-11 13:19:39.813 AdventureWorks2012 <\/code><\/pre>\n<p>  <b>5. Object Events<\/b><\/p>\n<p>  \u0412 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u043c \u0442\u0440\u0435\u0439\u0441\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432:<\/p>\n<pre><code class=\"sql\">USE [master] GO IF DB_ID('test') IS NOT NULL     DROP DATABASE [test] GO CREATE DATABASE [test] GO USE [test] GO CREATE TABLE dbo.tbl (ID INT) GO ALTER TABLE dbo.tbl ADD Col VARCHAR(20) GO CREATE UNIQUE CLUSTERED INDEX ix ON dbo.tbl (ID) GO USE [master] GO IF DB_ID('test') IS NOT NULL     DROP DATABASE [test] GO <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"sql\">SELECT       EventType = e.name     , t.DatabaseName     , t.ApplicationName     , t.LoginName     , t.StartTime     , t.ObjectName     , ObjectType =         CASE t.ObjectType             WHEN 8259 THEN 'Check Constraint'             WHEN 8260 THEN 'Default Constraint'             WHEN 8262 THEN 'Foreign Key'             WHEN 8272 THEN 'Stored Procedure'             WHEN 8274 THEN 'Rule'             WHEN 8275 THEN 'System Table'             WHEN 8276 THEN 'Server Trigger'             WHEN 8277 THEN 'Table'             WHEN 8278 THEN 'View'             WHEN 8280 THEN 'Extended Stored Procedure'             WHEN 16724 THEN 'CLR Trigger'             WHEN 16964 THEN 'Database'             WHEN 17222 THEN 'FullText Catalog'             WHEN 17232 THEN 'CLR Stored Procedure'             WHEN 17235 THEN 'Schema'             WHEN 17985 THEN 'CLR Aggregate Function'             WHEN 17993 THEN 'Inline Table-valued SQL Function'             WHEN 18000 THEN 'Partition Function'             WHEN 18004 THEN 'Table-valued SQL Function'             WHEN 19280 THEN 'Primary Key'             WHEN 19539 THEN 'SQL Login'             WHEN 19543 THEN 'Windows Login'             WHEN 20038 THEN 'Scalar SQL Function'             WHEN 20051 THEN 'Synonym'             WHEN 20821 THEN 'Unique Constraint'             WHEN 21075 THEN 'Server'             WHEN 21076 THEN 'Transact-SQL Trigger'             WHEN 21313 THEN 'Assembly'             WHEN 21318 THEN 'CLR Scalar Function'             WHEN 21321 THEN 'Inline scalar SQL Function'             WHEN 21328 THEN 'Partition Scheme'             WHEN 21333 THEN 'User'             WHEN 21572 THEN 'Database Trigger'             WHEN 21574 THEN 'CLR Table-valued Function'             WHEN 21587 THEN 'Statistics'             WHEN 21825 THEN 'User'             WHEN 21827 THEN 'User'             WHEN 21831 THEN 'User'             WHEN 21843 THEN 'User'             WHEN 21847 THEN 'User'             WHEN 22601 THEN 'Index'             WHEN 22611 THEN 'XMLSchema'             WHEN 22868 THEN 'Type'         END FROM sys.traces i CROSS APPLY sys.fn_trace_gettable([path], DEFAULT) t JOIN sys.trace_events e ON t.EventClass = e.trace_event_id WHERE e.name IN ('Object:Created', 'Object:Deleted', 'Object:Altered')     AND t.ObjectType != 21587     AND t.DatabaseID != 2     AND i.is_default = 1     AND t.EventSubClass = 1 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"sql\">EventType        DatabaseName   ApplicationName                                 LoginName     StartTime               ObjectName    ObjectType ---------------- -------------- ----------------------------------------------- ------------- ----------------------- ------------- -------------- Object:Created   test           Microsoft SQL Server Management Studio - Query  PC\\SergeyS    2016-02-11 13:36:46.727 NULL          Database Object:Created   test           Microsoft SQL Server Management Studio - Query  PC\\SergeyS    2016-02-11 13:36:46.760 tbl           Table Object:Altered   test           Microsoft SQL Server Management Studio - Query  PC\\SergeyS    2016-02-11 13:36:46.803 tbl           Table Object:Created   test           Microsoft SQL Server Management Studio - Query  PC\\SergeyS    2016-02-11 13:36:46.837 ix            Index Object:Deleted   test           Microsoft SQL Server Management Studio - Query  PC\\SergeyS    2016-02-11 13:36:56.347 NULL          Database <\/code><\/pre>\n<p>  <b>6. Server Events<\/b><\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u0442\u0440\u0435\u0439\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0442\u0435\u043c, \u043a\u0442\u043e \u0438 \u043a\u043e\u0433\u0434\u0430 \u0434\u0435\u043b\u0430\u043b \u0431\u0435\u043a\u0430\u043f\u044b \u0438 \u0440\u0435\u0441\u0442\u043e\u0440\u0438\u043b \u0431\u0430\u0437\u044b:<\/p>\n<pre><code class=\"sql\">SELECT     CASE WHEN t.EventSubClass = 1         THEN 'BACKUP'          ELSE 'RESTORE'     END     , t.TextData     , t.ApplicationName     , t.LoginName     , t.StartTime FROM sys.traces i CROSS APPLY sys.fn_trace_gettable([path], DEFAULT) t WHERE i.is_default = 1     AND t.EventClass = 115 -- Audit Backup\/Restore Event <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"sql\">TextData             ApplicationName                                  LoginName   StartTime -------------------- ------------------------------------------------ ----------- ------------------------- BACKUP DATABASE      Microsoft SQL Server Management Studio - Query   PC\\SergeyS  2016-01-21 13:05:26.390 RESTORE DATABASE     dbForge Studio for SQL Server                    PC\\SergeyS  2016-01-22 12:46:45.717 BACKUP DATABASE      SQLCMD                                           sa          2016-01-24 10:16:40.317 <\/code><\/pre>\n<p>  \u0418\u043b\u0438 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 <i>SQL Server<\/i>-\u043e\u043c:<\/p>\n<pre><code class=\"sql\">SELECT       t.StartTime     , [Type] =         CASE EventSubClass             WHEN 1 THEN 'UP'             WHEN 2 THEN 'DOWN'         END     , t.IntegerData FROM sys.traces i CROSS APPLY sys.fn_trace_gettable([path], DEFAULT) t WHERE t.EventClass = 81 -- Server Memory Change     AND i.is_default = 1 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"sql\">StartTime                Type  IntegerData ------------------------ ----- ----------- 2016-02-10 02:52:42.887  UP    191 2016-02-10 02:53:00.640  UP    371 2016-02-10 02:53:16.780  UP    552 2016-02-10 02:53:34.917  UP    734 2016-02-10 02:53:52.140  UP    916 2016-02-10 10:05:00.027  DOWN  736 2016-02-10 10:17:17.417  UP    921 2016-02-10 11:52:14.930  DOWN  735 2016-02-10 12:00:32.577  DOWN  553 2016-02-10 13:06:11.540  UP    751 2016-02-10 15:11:10.487  UP    936 2016-02-10 15:15:26.107  DOWN  714 2016-02-10 15:31:19.453  UP    894 2016-02-10 15:42:03.383  DOWN  698 2016-02-10 15:53:42.490  DOWN  518 2016-02-10 21:14:38.363  UP    697 <\/code><\/pre>\n<p>  <b>\u0412\u044b\u0432\u043e\u0434\u044b<\/b><\/p>\n<p>  \u0414\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u0442\u0440\u0435\u0439\u0441 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u043e\u0449\u043d\u044b\u043c \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0434\u043b\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043e\u043d \u0438\u043c\u0435\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u043e\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0432 20\u041c\u0431. \u041d\u043e \u0432\u0441\u0435 \u0436\u0435 \u0438\u043d\u043e\u0433\u0434\u0430 \u043e\u043d \u0431\u044b\u0432\u0430\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0439 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 <i>SQL Server<\/i>. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043c\u043e\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u044d\u0442\u043e \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e \u0441\u043c\u043e\u0433\u043b\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c.               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/277053\/\"> https:\/\/habrahabr.ru\/post\/277053\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/c20\/dff\/841\/c20dff841cb74ee68676f2499f76dc45.jpg\" align=\"left\" height=\"383\"\/>\u0427\u0430\u0441\u0442\u043e \u043c\u043d\u0435 \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430. \u0421\u0440\u0435\u0434\u043d\u0435\u043d\u044c\u043a\u0438\u0439 \u043e\u0444\u0438\u0441, \u043c\u043e\u043d\u0438\u043a <i>943N<\/i> \u0438 \u043e\u0431\u043e\u0433\u0440\u0435\u0432\u0430\u0442\u0435\u043b\u044c <i>Pentium D<\/i> \u043f\u043e\u0434 \u043d\u043e\u0433\u0430\u043c\u0438. \u041a\u0430\u043a \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b \u0438\u0437 \u043d\u0438\u043e\u0442\u043a\u0443\u0434\u0430 \u0411\u043e\u0440\u0438\u0441 (\u043d\u0435\u0442\u2026 \u043d\u0435 \u0411\u043e\u0440\u0438\u0441-\u0431\u0440\u0438\u0442\u0432\u0430) \u0441 \u043b\u0438\u043d\u0435\u0439\u043a\u043e\u0439 \u0432 \u0440\u0443\u043a\u0430\u0445 \u0438 \u043d\u0430\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e \u043f\u0440\u043e\u0441\u0438\u043b \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u00ab\u0431\u043e\u043b\u044c\u043d\u043e\u00bb <i>SQL Server<\/i>.<\/p>\n<p>  \u0418\u043c\u0435\u043d\u043d\u043e \u0432 \u0442\u0435 \u0434\u0430\u043b\u0435\u043a\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0430 \u044f \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0444\u0430\u0439\u043b\u0435\u0440\u043e\u043c. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0442\u0440\u0435\u0439\u0441\u044b \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043e\u0447\u0435\u043d\u044c \u043a\u0441\u0442\u0430\u0442\u0438 \u043f\u0440\u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0438 \u043f\u043e\u0438\u0441\u043a\u0435 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u041f\u043e\u0442\u043e\u043c \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u044f \u043e\u0442\u043a\u0440\u044b\u043b <i>DMV<\/i> \u0438 <i>XEvents<\/i>\u2026 \u0438 \u043f\u0440\u043e\u0444\u0430\u0439\u043b\u0435\u0440\u043e\u043c \u0441\u0442\u0430\u043b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0435\u0436\u0435. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0443\u043f\u043a\u0430 \u043f\u0440\u043e\u0441\u0442\u0430 \u2013 \u0442\u0440\u0435\u0439\u0441\u044b \u043e\u0447\u0435\u043d\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0435\u043c\u043a\u0438\u0435.<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e, \u0434\u0430\u043d\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u0440\u0435\u0436\u0434\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u0434\u0430\u0432\u0430\u0442\u044c \u0430\u043d\u0430\u0444\u0435\u043c\u0435. \u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 <i>2005<\/i> \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 <i>SQL Server<\/i> \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043b\u0435\u0433\u043a\u043e\u0432\u0435\u0441\u043d\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0442\u0440\u0435\u0439\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u0440\u0430\u043d\u0438\u0442 \u0432 \u0441\u0435\u0431\u0435 \u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-274094","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/274094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=274094"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/274094\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=274094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=274094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=274094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}