{"id":275786,"date":"2016-03-09T19:42:02","date_gmt":"2016-03-09T16:42:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=275786"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=275786","title":{"rendered":"SQL Server 2016 RC0"},"content":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/c24\/c1a\/9ff\/c24c1a9ffc1e4ac2aa969a960b3aa5f1.png\" align=\"left\"\/>\u041d\u0430 \u0433\u043b\u0430\u0437\u0430 \u043f\u043e\u043f\u0430\u043b\u0430\u0441\u044c \u0443\u0436\u0435 \u0432\u0442\u043e\u0440\u0430\u044f \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u043a\u043e\u0440\u043e <i>Microsoft<\/i> \u00ab\u043f\u043e\u0434\u0440\u0443\u0436\u0438\u0442\u00bb <i>SQL Server<\/i> \u0438 <i>Linux<\/i>.<\/p>\n<p>  \u041d\u043e \u043d\u0438 \u0441\u043b\u043e\u0432\u0430 \u043d\u0435 \u0441\u043a\u0430\u0437\u0430\u043d\u043e \u043f\u0440\u043e <i>SQL Server 2016 Release Candidate<\/i>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u0430\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f <a href=\"https:\/\/www.microsoft.com\/en-us\/evalcenter\/evaluate-sql-server-2016\">\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/a> \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043d\u0430 \u0434\u043d\u044f\u0445.<\/p>\n<p>  \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043c\u0435\u0441\u044f\u0446\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u0442\u044c <i>RTM<\/i>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u043b\u0435\u0435 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u0440\u0430\u0437\u0431\u043e\u0440 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0439 (\u043e\u0442\u043b\u0438\u0447\u0438\u044f \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435, \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0435 \u0442\u0440\u0435\u0439\u0441-\u0444\u043b\u0430\u0433\u0438, \u043d\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043f\u0430\u0440\u0430 \u043a\u0440\u0443\u0442\u044b\u0445 \u0444\u0438\u0447 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043f\u043b\u0430\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 <i>SQL Server 2016<\/i>. \u0421\u0430\u043c \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0442\u043e\u0440 \u043f\u0440\u0435\u0442\u0435\u0440\u043f\u0435\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439: <\/p>\n<ul>\n<li>\u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e <i>x64<\/i> \u0432\u0435\u0440\u0441\u0438\u044f <i>SQL Server<\/i>-\u0430 (\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 <i>x86<\/i> \u0431\u0438\u043b\u0434 \u0432\u044b\u0440\u0435\u0437\u0430\u043b\u0438 \u0435\u0449\u0435 \u0432 <i>CTP2.3<\/i>). \u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0432\u0441\u044e \u0437\u0432\u0443\u0447\u0438\u0442 \u0431\u043e\u043b\u0435\u0435 \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u0435\u0435: <i>\u00abSQL Server 2016 Release Candidate (RC0) is a 64-bit application. 32-bit installation is discontinued, though some elements run as 32-bit components.\u00bb<\/i><\/li>\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 <i>SQL Server 2016<\/i> \u043d\u0430 <i>Windows 7<\/i> \u0438 <i>Windows Server 2008<\/i> \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0438\u0441\u0442\u0435\u043c \u043a\u0443\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <i>SQL Server<\/i>: \u0432\u0441\u0435 <i>x64<\/i> \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u0438 <i>Windows 8\/8.1\/10<\/i> \u0438 <i>Windows Server 2012<\/i><\/li>\n<li><i>SSMS<\/i> \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 <i>SQL Server<\/i> \u0438 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. \u0421\u043a\u0430\u0447\u0430\u0442\u044c <i>standalone<\/i> \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u044e <i>SSMS<\/i> \u043c\u043e\u0436\u043d\u043e \u043f\u043e \u044d\u0442\u043e\u0439 <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/mt238290.aspx\"><b>\u0441\u0441\u044b\u043b\u043a\u0435<\/b><\/a>. \u041d\u043e\u0432\u0430\u044f \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u044f <i>SSMS<\/i> \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 <i>SQL Server 2005..2016<\/i>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0446\u0435\u043b\u044b\u0439 \u043f\u0430\u0440\u043a \u0441\u0442\u0443\u0434\u0438\u0439 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438.<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u0438\u043b\u0438\u0441\u044c \u0434\u0432\u0430 \u043d\u043e\u0432\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u044f\u0437\u044b\u043a\u0430 <i>R<\/i> \u0438 <i>PolyBase<\/i> (\u043c\u043e\u0441\u0442 \u043c\u0435\u0436\u0434\u0443 <i>SQL Server<\/i> \u0438 <i>Hadoop<\/i>):<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f36\/53e\/bac\/f3653ebac23d471184e3440e48c1145f.png\"\/><\/p>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b <i>PolyBase<\/i> \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/jre7-downloads-1880261.html\"><i>JRE7<\/i><\/a> \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u0432\u0435\u0436\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e: <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/0e3\/2fc\/6b5\/0e32fc6b566349ecb7e93d572d7c92b7.png\"\/><\/p>\n<p>  \u0418 \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u043f\u043e\u0442\u043e\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f <i>Firewall<\/i> \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043f\u043e\u0440\u0442\u043e\u0432:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/bef\/090\/d36\/bef090d36aad471298e47128328d732e.png\"\/><\/p>\n<p>  \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 <b>\u0441\u043f\u0430\u0441\u0438\u0431\u043e<\/b> <i>Microsoft<\/i> \u2014 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043a\u043e\u0432\u044b\u0440\u044f\u0442\u044c\u0441\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u043e\u0432\u043e\u0439 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0435, \u0447\u0442\u043e\u0431\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c <a href=\"https:\/\/habrahabr.ru\/post\/270699\/\"><i>Instant File Initialization<\/i><\/a>:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/e8f\/7f8\/77c\/e8f7f877c61c41e89c60e6d510656b38.png\"\/><\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0441\u044f \u0434\u0438\u0430\u043b\u043e\u0433 \u043f\u043e \u0432\u044b\u0431\u043e\u0440\u0443 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0445 \u043f\u0443\u0442\u0435\u0439:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/546\/464\/769\/5464647697834f07a09bac219b694421.png\"\/><\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 <i>tempdb<\/i> \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0443 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0440\u0430\u0437\u043d\u0435\u0441\u0442\u0438 \u0438\u0445 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u0434\u0438\u0441\u043a\u0430\u043c. \u041d\u043e \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c, \u0440\u0430\u0434\u0443\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <i>Autogrowth<\/i> \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 <i>1M\u0431<\/i> (\u043a\u0430\u043a \u0440\u0430\u043d\u044c\u0448\u0435), \u0430 <i>64M\u0431<\/i>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/a53\/e69\/7ad\/a53e697ad478423893e360f118ed4429.png\"\/><\/p>\n<p>  \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d <i>256\u041c\u0431<\/i>. \u041c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0438 \u0431\u043e\u043b\u044c\u0448\u0435, \u043d\u043e \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438: <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/6eb\/ab7\/994\/6ebab79948ab47169a7334bfaa825d87.png\"\/><\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043e\u0442\u043b\u0438\u0447\u0438\u044f \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0442\u043e \u0447\u0442\u043e \u0435\u0449\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u043e\u0441\u044c\u2026<\/p>\n<p>  \u0418\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u0431\u0430\u0437\u044b <i>model<\/i>, \u0447\u0442\u043e\u0431\u044b \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u0447\u0438\u0441\u043b\u043e <i>AutoGrow<\/i> \u0441\u043e\u0431\u044b\u0442\u0438\u0439:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/0de\/8cc\/e3d\/0de8cce3dda04b9181ee3907580bba12.png\"\/><\/p>\n<p>  \u041f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u043f\u043b\u043e\u0445\u043e \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/habrahabr.ru\/post\/277053\/\">\u0442\u0443\u0442<\/a>.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0432\u0430\u0436\u043d\u043e \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044c, \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 <i>Trace Flag<\/i> \u0441\u0442\u0430\u043b\u0438 \u043d\u0430 \u043d\u043e\u0432\u043e\u043c <i>SQL Server<\/i>-\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\u2026<\/p>\n<h5><b>-T1118<\/b><\/h5>\n<p>  <i>SQL Server<\/i> \u0432\u044b\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0434\u0438\u0441\u043a\u0430 \u043a\u0443\u0441\u043a\u0430\u043c\u0438 \u043f\u043e <i>64\u041a\u0431<\/i> (\u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u043c\u0438 \u044d\u043a\u0441\u0442\u0435\u043d\u0442\u0430\u043c\u0438). \u042d\u043a\u0441\u0442\u0435\u043d\u0442 \u2013 \u044d\u0442\u043e \u0433\u0440\u0443\u043f\u043f\u0430 \u0438\u0437 \u0432\u043e\u0441\u044c\u043c\u0438 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 (\u043f\u043e <i>8\u041a\u0431<\/i> \u043a\u0430\u0436\u0434\u0430\u044f) \u0444\u0430\u0439\u043b\u043e\u0432 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>  \u0418\u043c\u0435\u044e\u0442\u0441\u044f \u0434\u0432\u0430 \u0442\u0438\u043f\u0430 \u044d\u043a\u0441\u0442\u0435\u043d\u0442\u043e\u0432: \u0441\u043c\u0435\u0448\u0430\u043d\u043d\u044b\u0435 \u0438 \u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u044b\u0435. \u041d\u0430 \u0441\u043c\u0435\u0448\u0430\u043d\u043d\u043e\u043c \u044d\u043a\u0441\u0442\u0435\u043d\u0442\u0435 \u043c\u043e\u0433\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441 \u0440\u0430\u0437\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. \u0422\u0430\u043a\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043c\u0435\u0441\u0442\u0430. \u041d\u043e \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u0432 <i>64\u041a\u0431<\/i> \u0438 \u043a\u043e\u0433\u0434\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 8 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u043e\u0431\u044a\u0435\u043a\u0442\u0443, \u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u044b\u0445 \u044d\u043a\u0441\u0442\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0432\u044b\u0434\u0435\u043b\u044f\u0442\u044c \u0434\u043b\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u044b\u0435 \u044d\u043a\u0441\u0442\u0435\u043d\u0442\u044b \u0431\u044b\u043b \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d <i>TF 1118<\/i>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 <a href=\"http:\/\/www.sqlskills.com\/blogs\/paul\/misconceptions-around-tf-1118\/\">\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043b\u043e\u0441\u044c<\/a> \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c. \u0418 \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043e\u043d \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0431\u0430\u0437 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<p>  \u0412 <i>2016<\/i> \u0432\u0435\u0440\u0441\u0438\u0438 \u0442\u0430\u043a\u043e\u0433\u043e \u0443\u0436\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442. \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439 \u0431\u0430\u0437\u044b \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043e\u043f\u0446\u0438\u044e <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/bb522469.aspx\"><i>MIXED_PAGE_ALLOCATION<\/i><\/a>:<\/p>\n<pre><code class=\"html\">ALTER DATABASE test SET MIXED_PAGE_ALLOCATION OFF <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u0430\u044f \u043e\u043f\u0446\u0438\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0442.\u0435. \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f, \u043a\u0430\u043a \u0438 \u0431\u044b\u043b\u043e \u0440\u0430\u043d\u0435\u0435:<\/p>\n<pre><code class=\"html\">SELECT name, is_mixed_page_allocation_on FROM sys.databases <\/code><\/pre>\n<p>  \u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u043b\u0438\u0448\u044c \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0431\u0430\u0437 \u0438 <i>tempdb<\/i>:<\/p>\n<pre><code class=\"html\">name              is_mixed_page_allocation_on ----------------- --------------------------- master            1 tempdb            0 model             1 msdb              1 DWDiagnostics     0 DWConfiguration   0 DWQueue           0 test              0 <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0434\u0443 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"html\">IF OBJECT_ID('dbo.tbl') IS NOT NULL     DROP TABLE dbo.tbl GO CREATE TABLE dbo.tbl (ID INT DEFAULT 1) GO CHECKPOINT GO INSERT dbo.tbl DEFAULT VALUES GO  SELECT [Current LSN], Operation, Context, AllocUnitName, [Description] FROM sys.fn_dblog(NULL, NULL) <\/code><\/pre>\n<p>  <i>MIXED_PAGE_ALLOCATION=ON<\/i>:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/cef\/ad0\/fe2\/cefad0fe20b54333a202834c7be65f77.png\"\/><\/p>\n<p>  <i>MIXED_PAGE_ALLOCATION=OFF<\/i>:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/630\/5a8\/ef5\/6305a8ef54914297b0d1f85a03a31c60.png\"\/><\/p>\n<h5><b>-T1117<\/b><\/h5>\n<p>  \u0412 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u0431\u0430\u0437\u044b <i>tempdb<\/i> <a href=\"http:\/\/www.sqlskills.com\/blogs\/paul\/correctly-adding-data-files-tempdb\/\">\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f<\/a> \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f\u0445 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e: \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b, \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0433\u0440\u0443\u043f\u043f\u0443, \u0438\u043c\u0435\u044e\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440. \u0421\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430. \u041c\u0435\u0441\u0442\u0430 \u0432 \u0444\u0430\u0439\u043b\u0435 <i>#1<\/i> \u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438 \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 <i>AutoGrow<\/i>. \u0427\u0435\u0440\u0435\u0437 \u0432\u0440\u0435\u043c\u044f \u0442\u0430\u043a\u0430\u044f \u0436\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f, \u043d\u043e \u0432\u0441\u0442\u0430\u0432\u043a\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0444\u0430\u0439\u043b <i>#2<\/i>, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e #1 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d. \u0427\u0442\u043e \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0435\u0442? <i>AutoGrow<\/i> \u0434\u043b\u044f <i>#2<\/i>\u2026 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u0430\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u0414\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432, \u0431\u044b\u043b \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d <i>TF 1117<\/i>. \u0420\u0430\u0431\u043e\u0442\u0430\u043b \u043e\u043d \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e \u0438 \u043f\u0440\u0438 \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0435 \u043c\u0435\u0441\u0442\u0430 \u0432 \u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u043b <i>AutoGrow<\/i> \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u0442\u0440\u0435\u0439\u0441-\u0444\u043b\u0430\u0433 \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f <i>tempdb<\/i> \u0438 \u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u0431\u0438\u0440\u0430\u0442\u0435\u043b\u044c\u043d\u043e <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/bb522469.aspx\">\u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c\u0441\u044f<\/a> \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0431\u0430\u0437:<\/p>\n<pre><code class=\"html\">ALTER DATABASE test     MODIFY FILEGROUP [PRIMARY] AUTOGROW_ALL_FILES GO ALTER DATABASE test     MODIFY FILEGROUP [PRIMARY] AUTOGROW_SINGLE_FILE GO <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<pre><code class=\"html\">USE tempdb GO  SELECT       name     , physical_name     , current_size_mb = ROUND(size * 8. \/ 1024, 0)     , auto_grow =         CASE WHEN is_percent_growth = 1             THEN CAST(growth AS VARCHAR(10)) + '%'             ELSE CAST(CAST(ROUND(growth * 8. \/ 1024, 0) AS INT) AS VARCHAR(10)) + 'MB'         END FROM sys.database_files WHERE [type] = 0 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"html\">name       physical_name                                       size_mb  auto_grow ---------- --------------------------------------------------- -------- ------------ tempdev    D:\\DATABASES\\SQL_2016RC0\\TEMP\\tempdb.mdf            8.000000 64MB temp2      D:\\DATABASES\\SQL_2016RC0\\TEMP\\tempdb_mssql_2.ndf    8.000000 64MB temp3      D:\\DATABASES\\SQL_2016RC0\\TEMP\\tempdb_mssql_3.ndf    8.000000 64MB temp4      D:\\DATABASES\\SQL_2016RC0\\TEMP\\tempdb_mssql_4.ndf    8.000000 64MB <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443:<\/p>\n<pre><code class=\"html\">IF OBJECT_ID('#t') IS NOT NULL     DROP TABLE #t GO  CREATE TABLE #t (     ID INT DEFAULT 1,     Value CHAR(8000) DEFAULT 'X' ) GO  INSERT INTO #t SELECT TOP(10000) 1, 'X' FROM [master].dbo.spt_values c1 CROSS APPLY [master].dbo.spt_values c2 <\/code><\/pre>\n<p>  \u041c\u0435\u0441\u0442\u0430 \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u0442 \u0438 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 <i>AutoGrow<\/i>.<\/p>\n<p>  <i>AUTOGROW_SINGLE_FILE<\/i>:<\/p>\n<pre><code class=\"html\">name       physical_name                                       size_mb     auto_grow ---------- --------------------------------------------------- ----------- ------------ tempdev    D:\\DATABASES\\SQL_2016RC0\\TEMP\\tempdb.mdf            72.000000   64MB temp2      D:\\DATABASES\\SQL_2016RC0\\TEMP\\tempdb_mssql_2.ndf    8.000000    64MB temp3      D:\\DATABASES\\SQL_2016RC0\\TEMP\\tempdb_mssql_3.ndf    8.000000    64MB temp4      D:\\DATABASES\\SQL_2016RC0\\TEMP\\tempdb_mssql_4.ndf    8.000000    64MB <\/code><\/pre>\n<p>  <i>AUTOGROW_ALL_FILES<\/i>:<\/p>\n<pre><code class=\"html\">name       physical_name                                       size_mb     auto_grow ---------- --------------------------------------------------- ----------- ------------ tempdev    D:\\DATABASES\\SQL_2016RC0\\TEMP\\tempdb.mdf            72.000000   64MB temp2      D:\\DATABASES\\SQL_2016RC0\\TEMP\\tempdb_mssql_2.ndf    72.000000   64MB temp3      D:\\DATABASES\\SQL_2016RC0\\TEMP\\tempdb_mssql_3.ndf    72.000000   64MB temp4      D:\\DATABASES\\SQL_2016RC0\\TEMP\\tempdb_mssql_4.ndf    72.000000   64MB <\/code><\/pre>\n<p>  <\/p>\n<h5><b>-T2371<\/b><\/h5>\n<p>  \u0414\u043e 2016 \u0432\u0435\u0440\u0441\u0438\u0438 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u00ab20% + 500 \u0441\u0442\u0440\u043e\u043a\u00bb. \u041f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043a\u0430\u0436\u0443 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435:<\/p>\n<pre><code class=\"html\">USE [master] GO SET NOCOUNT ON  IF DB_ID('test') IS NOT NULL BEGIN     ALTER DATABASE [test] SET SINGLE_USER WITH ROLLBACK IMMEDIATE     DROP DATABASE [test] END GO CREATE DATABASE [test] GO USE [test] GO  IF OBJECT_ID('dbo.tbl', 'U') IS NOT NULL     DROP TABLE dbo.tbl GO CREATE TABLE dbo.tbl (     ID INT IDENTITY(1,1) PRIMARY KEY,     Value CHAR(1) ) GO CREATE NONCLUSTERED INDEX ix ON dbo.tbl (Value) GO  INSERT INTO dbo.tbl SELECT TOP(10000) 'x' FROM [master].dbo.spt_values c1 CROSS APPLY [master].dbo.spt_values c2 <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0430\u0441\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430, \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c:<\/p>\n<pre><code class=\"html\">SELECT [&gt;=] = COUNT(1) * .20 + 500 FROM dbo.tbl HAVING COUNT(1) &gt;= 500 <\/code><\/pre>\n<p>  \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e 2500 \u0441\u0442\u0440\u043e\u043a. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0437\u0430 \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u0430 \u0432\u043e\u043e\u0431\u0449\u0435\u2026 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u0443\u043c\u0443\u043b\u044f\u0442\u0438\u0432\u043d\u043e\u0435. \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u043f\u0435\u0440\u0432\u0430 \u0437\u0430\u043f\u0440\u043e\u0441:<\/p>\n<pre><code class=\"html\">UPDATE dbo.tbl  SET Value = 'a' WHERE ID &lt;= 2000 <\/code><\/pre>\n<p>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c:<\/p>\n<pre><code class=\"html\">DBCC SHOW_STATISTICS('dbo.tbl', 'ix') WITH HISTOGRAM <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"html\">RANGE_HI_KEY RANGE_ROWS    EQ_ROWS       DISTINCT_RANGE_ROWS  AVG_RANGE_ROWS ------------ ------------- ------------- -------------------- -------------- x            0             10000         0                    1 <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0441\u0442\u0430\u0440\u0430\u044f\u2026 \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441:<\/p>\n<pre><code class=\"html\">UPDATE dbo.tbl  SET Value = 'b' WHERE ID &lt;= 500 <\/code><\/pre>\n<p>  \u0423\u0440\u0430! \u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0430\u0441\u044c:<\/p>\n<pre><code class=\"html\">RANGE_HI_KEY RANGE_ROWS    EQ_ROWS       DISTINCT_RANGE_ROWS  AVG_RANGE_ROWS ------------ ------------- ------------- -------------------- -------------- a            0             1500          0                    1 b            0             500           0                    1 x            0             8000          0                    1 <\/code><\/pre>\n<p>  \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0443 \u043d\u0430\u0441 \u043e\u0433\u0440\u043e\u043c\u043d\u0430\u044f\u2026 10-20-30 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 \u0441\u0442\u0440\u043e\u043a. \u0427\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u043b\u0430\u0441\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u043d\u0443\u0448\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u044a\u0451\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438.<\/p>\n<p>  \u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 <i>SQL Server 2008R2 SP1<\/i> \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f <i>TF 2371<\/i>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0442 \u0442\u043e\u0442 \u00ab\u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439\u00bb \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u0437\u0430\u043d\u0438\u0436\u0430\u043b \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043e\u0431\u0449\u0435\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0441\u0442\u0440\u043e\u043a:<\/p>\n<pre><code class=\"sql\">&lt; 25k    = 20% &gt; 30k    = 18% &gt; 40k    = 15% &gt; 100k   = 10% &gt; 500k   = 5% &gt; 1000k  = 3.2% <\/code><\/pre>\n<p>  \u0412 <i>SQL Server 2016<\/i> \u044d\u0442\u043e\u0442 \u0442\u0440\u0435\u0439\u0441 \u0444\u043b\u0430\u0433 \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<h5><b>-T8048<\/b><\/h5>\n<p>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0432 \u0432\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0431\u043e\u043b\u0435\u0435 8 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u0432 \u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0439 <i>CMEMTHREAD<\/i> \u0438 \u043a\u0440\u0430\u0442\u043a\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a:<\/p>\n<pre><code class=\"html\">SELECT waiting_tasks_count FROM sys.dm_os_wait_stats WHERE wait_type = 'CMEMTHREAD'     AND waiting_tasks_count &gt; 0  SELECT spins FROM sys.dm_os_spinlock_stats WHERE name = 'SOS_SUSPEND_QUEUE'     AND spins &gt; 0 <\/code><\/pre>\n<p>  \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <i>TF 8048<\/i> \u043f\u043e\u043c\u043e\u0433\u0430\u043b\u043e \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e. \u0412 <i>SQL Server 2016<\/i> \u0434\u0430\u043d\u043d\u044b\u0439 \u0442\u0440\u0435\u0439\u0441 \u0444\u043b\u0430\u0433 \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<h5><b>SCOPED CONFIGURATION<\/b><\/h5>\n<p>  \u041d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0431\u0430\u0437\u044b \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043d\u043e\u0432\u0430\u044f <a href=\"https:\/\/msdn.microsoft.com\/en-US\/library\/mt629158%28SQL.130%29.aspx\">\u0433\u0440\u0443\u043f\u043f\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a<\/a>:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ce6\/30c\/a61\/ce630ca61e2244989b7efcf881b42c65.png\"\/><\/p>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0438\u0437 \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f <i>sys.database_scoped_configurations<\/i>. \u041b\u0438\u0447\u043d\u043e \u043c\u0435\u043d\u044f \u043e\u0447\u0435\u043d\u044c \u0440\u0430\u0434\u0443\u0435\u0442, \u0447\u0442\u043e \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c\u0430 \u043c\u0435\u043d\u044f\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e \u043a\u0430\u043a \u0440\u0430\u043d\u044c\u0448\u0435, \u0430 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0431\u0430\u0437\u044b. \u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u043d\u044f\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c\u0430:<\/p>\n<pre><code class=\"html\">ALTER DATABASE SCOPED CONFIGURATION SET MAXDOP = 0 <\/code><\/pre>\n<p>  \u0412\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0441\u0442\u0430\u0440\u044b\u0439 <i>Cardinality Estimation<\/i> (\u0440\u0430\u043d\u044c\u0448\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c <i>TF 9481<\/i> \u043b\u0438\u0431\u043e \u043f\u043e\u043d\u0438\u0436\u0430\u0442\u044c <i>compatibility level<\/i> \u0434\u043e 2012):<\/p>\n<pre><code class=\"html\">ALTER DATABASE SCOPED CONFIGURATION SET LEGACY_CARDINALITY_ESTIMATION = ON <\/code><\/pre>\n<p>  \u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0442\u044c <i>Parameter Sniffing<\/i> (\u0440\u0430\u043d\u044c\u0448\u0435 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u043b\u0438 <i>TF 4136<\/i> \u0438\u043b\u0438 \u0445\u0430\u0440\u0434\u043a\u043e\u0434\u0438\u043b\u0438 <i>OPTIMIZE FOR UNKNOWN<\/i>)<\/p>\n<pre><code class=\"html\">ALTER DATABASE SCOPED CONFIGURATION SET PARAMETER_SNIFFING = OFF <\/code><\/pre>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c <i>TF 4199<\/i>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0432\u043d\u0443\u0448\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 <a href=\"https:\/\/support.microsoft.com\/en-us\/kb\/974006\">\u0441\u043f\u0438\u0441\u043e\u043a<\/a> \u0441\u0430\u043c\u044b\u0445 \u0440\u0430\u0437\u043d\u044b\u0445 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0439.<\/p>\n<pre><code class=\"html\">ALTER DATABASE SCOPED CONFIGURATION SET QUERY_OPTIMIZER_HOTFIXES = ON <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0435\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <i>DBCC FREEPROCCACHE<\/i> \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u043e\u0433\u043e \u043a\u0435\u0448\u0430:<\/p>\n<pre><code class=\"html\">ALTER DATABASE SCOPED CONFIGURATION CLEAR PROCEDURE_CACHE <\/code><\/pre>\n<p>  \u0410\u043d\u0430\u043b\u043e\u0433 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<pre><code class=\"html\">DECLARE @id INT = DB_ID() DBCC FLUSHPROCINDB(@id) <\/code><\/pre>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0434\u0443\u043c\u0430\u044e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043e\u0431\u044c\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u043e\u0433\u043e \u043a\u0435\u0448\u0430 \u0432 \u0440\u0430\u0437\u0440\u0435\u0437\u0435 \u0431\u0430\u0437:<\/p>\n<pre><code class=\"cpp\">SELECT db = DB_NAME(t.[dbid]), plan_cache_kb = SUM(size_in_bytes \/ 1024)  FROM sys.dm_exec_cached_plans p CROSS APPLY sys.dm_exec_sql_text(p.plan_handle) t WHERE t.[dbid] &lt; 32767 GROUP BY t.[dbid] ORDER BY 2 DESC <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<h5><b>JSON_MODIFY<\/b><\/h5>\n<p>  \u0412 <i>RC0<\/i> \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c <i>JSON<\/i> c \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/dn921892.aspx\"><i>JSON_MODIFY<\/i><\/a>:<\/p>\n<pre><code class=\"html\">DECLARE @js NVARCHAR(100) = '{     &quot;id&quot;: 1,     &quot;name&quot;: &quot;JC&quot;,     &quot;skills&quot;: [&quot;T-SQL&quot;] }'  SET @js = JSON_MODIFY(@js, '$.name', 'Paul') -- update SET @js = JSON_MODIFY(@js, '$.surname', 'Denton') -- insert SET @js = JSON_MODIFY(@js, '$.id', NULL) -- delete SET @js = JSON_MODIFY(@js, 'append $.skills', 'JSON') -- append  PRINT @js <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"html\">{     &quot;name&quot;: &quot;Paul&quot;,     &quot;skills&quot;: [&quot;T-SQL&quot;,&quot;JSON&quot;],     &quot;surname&quot;:&quot;Denton&quot; } <\/code><\/pre>\n<p>  <\/p>\n<h5><b>STRING_ESCAPE<\/b><\/h5>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044f <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/mt684589.aspx\"><i>STRING_ESCAPE<\/i><\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u044d\u043a\u0440\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u0441\u043f\u0435\u0446\u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0432 \u0442\u0435\u043a\u0441\u0442\u0435:<\/p>\n<pre><code class=\"html\">SELECT STRING_ESCAPE(N'JS\/Denton &quot;Deus Ex&quot;', N'JSON') <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"html\">------------------------ JS\\\/Denton \\&quot;Deus Ex\\&quot; <\/code><\/pre>\n<p>  <\/p>\n<h5><b>STRING_SPLIT<\/b><\/h5>\n<p>  \u0421\u0440\u043e\u0447\u043d\u043e \u0440\u0430\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f! \u041d\u0430\u043a\u043e\u043d\u0435\u0446 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044f <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/mt684588.aspx\"><i>STRING_SPLIT<\/i><\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u0437\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430\u0441 \u043e\u0442 \u043f\u0440\u0435\u0436\u043d\u0438\u0445 \u0438\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0439 \u0441 <i>XML<\/i> \u0438 <i>CTE<\/i>:<\/p>\n<pre><code class=\"html\">SELECT * FROM STRING_SPLIT(N'1,2,3,,4', N',') <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"html\">value --------- 1 2 3  4 <\/code><\/pre>\n<p>  \u041d\u043e \u0435\u0441\u0442\u044c \u0438 \u00ab\u043b\u043e\u0436\u043a\u0430 \u0434\u0435\u0433\u0442\u044f\u00bb, \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u043c \u0432 \u043e\u0434\u0438\u043d \u0441\u0438\u043c\u0432\u043e\u043b:<\/p>\n<pre><code class=\"html\">SELECT * FROM STRING_SPLIT(N'1--2--3--4', N'--') <\/code><\/pre>\n<p>  <i>Msg 214, Level 16, State 11, Line 3<br \/>  Procedure expects parameter &#8216;separator&#8217; of type &#8216;nchar(1)\/nvarchar(1)&#8217;.<\/i><\/p>\n<p>  \u0421 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u043c \u0441\u0442\u0430\u0440\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0441\u043f\u043b\u0438\u0442\u0430 \u0438 \u043d\u043e\u0432\u044b\u0435:<\/p>\n<pre><code class=\"sql\">SET STATISTICS TIME ON  DECLARE @x VARCHAR(MAX) = 'x' + REPLICATE(CAST(',x' AS VARCHAR(MAX)), 500000)  ;WITH cte AS (     SELECT         s = 1,         e = COALESCE(NULLIF(CHARINDEX(',', @x, 1), 0), LEN(@x) + 1),         v = SUBSTRING(@x, 1, COALESCE(NULLIF(CHARINDEX(',', @x, 1), 0), LEN(@x) + 1) - 1)     UNION ALL     SELECT         s = CONVERT(INT, e) + 1,         e = COALESCE(NULLIF(CHARINDEX(',', @x, e + 1), 0), LEN(@x) + 1),         v = SUBSTRING(@x, e + 1, COALESCE(NULLIF(CHARINDEX(',',  @x, e + 1), 0), LEN(@x) + 1)- e - 1)     FROM cte     WHERE e &lt; LEN(@x) + 1 ) SELECT v FROM cte WHERE LEN(v) &gt; 0 OPTION (MAXRECURSION 0)  SELECT t.c.value('(.\/text())[1]', 'VARCHAR(100)') FROM  (      SELECT x = CONVERT(XML, '&lt;i&gt;' + REPLACE(@x, ',', '&lt;\/i&gt;&lt;i&gt;') + '&lt;\/i&gt;').query('.') ) a CROSS APPLY x.nodes('i') t(c)  SELECT * FROM STRING_SPLIT(@x, N',') <\/code><\/pre>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"html\">(CTE)  SQL Server Execution Times:    CPU time = 18719 ms,  elapsed time = 19109 ms.  (XML)  SQL Server Execution Times:    CPU time = 4672 ms,  elapsed time = 4958 ms.  (STRING_SPLIT)  SQL Server Execution Times:    CPU time = 2828 ms,  elapsed time = 2941 ms. <\/code><\/pre>\n<p>  <\/p>\n<h5><b>Live Query Statistics<\/b><\/h5>\n<p>  \u0412 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 <i>SSMS<\/i> \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ff5\/9f7\/1ae\/ff59f71aee9e44d9b344f009b9e8f41a.gif\"\/><br \/>  \u0414\u0430\u043d\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u0430\u043a \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 <i>SQL Server 2016<\/i>, \u043d\u043e \u0438 \u0434\u043b\u044f <i>SQL Server 2014<\/i>. \u041d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0432\u044b\u0431\u043e\u0440\u043a\u0438 \u0438\u0437 <i>sys.dm_exec_query_profiles<\/i>:<\/p>\n<pre><code class=\"html\">SELECT       p.[sql_handle]     , s.[text]     , p.physical_operator_name     , p.row_count     , p.estimate_row_count     , percent_complete = 100 * p.row_count \/ p.estimate_row_count FROM sys.dm_exec_query_profiles p CROSS APPLY sys.dm_exec_sql_text(p.[sql_handle]) s <\/code><\/pre>\n<p>  \u0424\u0438\u0448\u043a\u0430 \u044d\u0442\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043a\u0440\u0443\u0442\u0430\u044f\u2026 \u0437\u043d\u0430\u044e \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439 \u0443\u0436\u0435 \u043d\u0430\u0447\u0430\u043b\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432 \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430\u0445. \u0418\u043c\u0435\u044e \u0432\u0432\u0438\u0434\u0443 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e <a href=\"http:\/\/blogs.sqlsentry.com\/jasonhall\/plan-explorer-update\/\"><i>Plan Explorer<\/i><\/a> \u0438 <a href=\"https:\/\/www.devart.com\/dbforge\/sql\/studio\/sql-query-profiler.html#header\"><i>dbForge Studio<\/i><\/a>.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u0437\u0430 \u0431\u043e\u0440\u0442\u043e\u043c \u044d\u0442\u043e\u0433\u043e \u043e\u0431\u0437\u043e\u0440\u0430 \u044f \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u043e\u0432\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 <i>SQL Server<\/i>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0432\u044b\u0439\u0434\u0435\u0442 RTM.<\/p>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0435\u2026 \u0412\u0441\u0435\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.               <\/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\/259729\/\"> https:\/\/habrahabr.ru\/post\/259729\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/c24\/c1a\/9ff\/c24c1a9ffc1e4ac2aa969a960b3aa5f1.png\" align=\"left\"\/>\u041d\u0430 \u0433\u043b\u0430\u0437\u0430 \u043f\u043e\u043f\u0430\u043b\u0430\u0441\u044c \u0443\u0436\u0435 \u0432\u0442\u043e\u0440\u0430\u044f \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u043a\u043e\u0440\u043e <i>Microsoft<\/i> \u00ab\u043f\u043e\u0434\u0440\u0443\u0436\u0438\u0442\u00bb <i>SQL Server<\/i> \u0438 <i>Linux<\/i>.<\/p>\n<p>  \u041d\u043e \u043d\u0438 \u0441\u043b\u043e\u0432\u0430 \u043d\u0435 \u0441\u043a\u0430\u0437\u0430\u043d\u043e \u043f\u0440\u043e <i>SQL Server 2016 Release Candidate<\/i>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u0430\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f <a href=\"https:\/\/www.microsoft.com\/en-us\/evalcenter\/evaluate-sql-server-2016\">\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/a> \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043d\u0430 \u0434\u043d\u044f\u0445.<\/p>\n<p>  \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043c\u0435\u0441\u044f\u0446\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u0442\u044c <i>RTM<\/i>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u043b\u0435\u0435 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u0440\u0430\u0437\u0431\u043e\u0440 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0439 (\u043e\u0442\u043b\u0438\u0447\u0438\u044f \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435, \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0435 \u0442\u0440\u0435\u0439\u0441-\u0444\u043b\u0430\u0433\u0438, \u043d\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043f\u0430\u0440\u0430 \u043a\u0440\u0443\u0442\u044b\u0445 \u0444\u0438\u0447 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043f\u043b\u0430\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\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-275786","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/275786","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=275786"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/275786\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=275786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=275786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=275786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}