{"id":305366,"date":"2020-06-15T15:01:26","date_gmt":"2020-06-15T15:01:26","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=305366"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=305366","title":{"rendered":"\u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Microsoft SQL \u0434\u043b\u044f \u043e\u0442\u0447\u0451\u0442\u043e\u0432 \u0432 Power BI. \u041d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 Mindbox"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/506740\/\">\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b&nbsp;\u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432&nbsp;\u0440\u0435\u043a\u043b\u0430\u043c\u0443, \u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0451 \u0438\u0437\u043c\u0435\u0440\u044f\u0442\u044c: \u043f\u0438\u0441\u044c\u043c\u0430, \u0432\u0438\u0437\u0438\u0442\u044b, \u0437\u0430\u043a\u0430\u0437\u044b, \u0432\u044b\u0440\u0443\u0447\u043a\u0443. \u0412\u0430\u0436\u043d\u0430 \u0438&nbsp;\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u043c\u0435\u0442\u0440\u0438\u043a. \u0414\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u0438&nbsp;\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0435 \u043e\u0442\u0447\u0451\u0442\u044b \u0432&nbsp;Microsoft Power BI. \u0410&nbsp;\u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u043e\u0442\u0447\u0451\u0442\u043e\u0432 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0438\u0445&nbsp;\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0432&nbsp;\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0431\u0430\u0437\u0435. \u042d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043c\u043d\u043e\u0433\u043e, \u0438&nbsp;\u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0435\u0451&nbsp;\u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0438\u0437&nbsp;\u043e\u043d\u043b\u0430\u0439\u043d-\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u041c\u044b&nbsp;\u0445\u0440\u0430\u043d\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432&nbsp;Microsoft SQL, \u043d\u043e&nbsp;\u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438&nbsp;\u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440&nbsp;\u0411\u0414.<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043e\u0442\u0447\u0451\u0442\u043e\u0432 \u043f\u043e&nbsp;\u0434\u0430\u043d\u043d\u044b\u043c \u0438\u0437&nbsp;ESP<\/h2>\n<p>  <\/p>\n<p>\u0421\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b (Email Sending Platform \u0438\u043b\u0438 ESP) \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043f\u043e&nbsp;\u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0430\u043c: \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438, \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438, \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f, \u043a\u043b\u0438\u043a\u0438. \u0410&nbsp;\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Mindbox, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u044e\u0434\u0430 \u0437\u0430\u043a\u0430\u0437\u044b \u0438&nbsp;\u0432\u044b\u0440\u0443\u0447\u043a\u0443.<\/p>\n<p>  <\/p>\n<p>\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0438&nbsp;\u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Google Analytics \u0438\/\u0438\u043b\u0438 \u042f\u043d\u0434\u0435\u043a\u0441.\u041c\u0435\u0442\u0440\u0438\u043a\u0438.<\/p>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u0433\u0434\u0435-\u0442\u043e \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0447\u0435\u0440\u0435\u0437 API \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c, \u043d\u043e&nbsp;\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043e\u0442\u0447\u0451\u0442\u044b \u043f\u043e&nbsp;\u044d\u0442\u0438\u043c \u0441\u044b\u0440\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u043c \u0441\u043b\u043e\u0436\u043d\u043e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443:<\/p>\n<p>  <\/p>\n<ol>\n<li>\u0414\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0432&nbsp;\u0440\u0430\u0437\u043d\u044b\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u0445, \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u044b\u0445.<\/li>\n<li>\u0414\u043e\u0441\u0442\u0443\u043f \u043a&nbsp;\u0434\u0430\u043d\u043d\u044b\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0438\u0437-\u0437\u0430 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0441\u0445\u0435\u043c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445.<\/li>\n<li>\u0414\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0432&nbsp;ESP \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430&nbsp;\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0441\u044f\u0446\u0435\u0432, \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0440\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043e\u0431\u044b\u0447\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u044e\u0442.<\/li>\n<li>\u041a\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u043d\u043e\u0433\u043e, \u0442\u043e&nbsp;\u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u0437-\u0437\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u0432&nbsp;\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 API \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u0438\u043b\u0438 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043d\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u0442\u0438.<\/li>\n<li>\u041f\u0440\u0438 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0432&nbsp;\u043e\u0442\u0447\u0451\u0442\u0435 \u043d\u0430&nbsp;\u0441\u0435\u0440\u0432\u0435\u0440\u0435 Power BI&nbsp;\u0447\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441&nbsp;\u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043a&nbsp;\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u043c \u0438\u0437-\u0437\u0430 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438 \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438.<\/li>\n<\/ol>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u043e\u0442\u0447\u0451\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043e\u0442\u043d\u0438 \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0442\u044b\u0441\u044f\u0447\u0438 API-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043e\u0442\u0447\u0451\u0442 \u043f\u043e&nbsp;\u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432, \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043e \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0438. \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u043e\u0441\u0442 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e&nbsp;\u0434\u043d\u044f\u043c, \u0442\u043e&nbsp;\u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u044d\u0442\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437, \u0437\u0430&nbsp;\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439 \u043c\u044b&nbsp;\u0445\u043e\u0442\u0438\u043c \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043e\u0442\u0447\u0451\u0442. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u0435\u043a\u0443\u043d\u0434\u0443, \u0432&nbsp;Power BI&nbsp;\u043c\u043e\u0433\u0443\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438&nbsp;\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b&nbsp;\u0441\u0442\u0430\u043b\u0438 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432&nbsp;\u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445&nbsp;\u2014 Microsoft SQL Server. \u041c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438&nbsp;\u0432&nbsp;\u0434\u0440\u0443\u0433\u0438\u0435 \u0431\u0430\u0437\u044b, \u0432&nbsp;\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442&nbsp;\u043d\u0430\u0448\u0438\u0445 \u0437\u0430\u0434\u0430\u0447. \u041f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u0441\u0432\u043e\u0435\u0433\u043e SQL-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a MS&nbsp;Azure \u0438\u043b\u0438 BigQuery.<\/p>\n<p><strong>\u041a\u0435\u0439\u0441 \u043e\u0442&nbsp;\u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u043e\u0432:<\/strong> \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043f\u043e&nbsp;\u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u0439 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0435 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f ESP-\u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u044b \u0438&nbsp;\u043e\u0442\u0434\u0430\u0451\u0442 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u0432&nbsp;\u043c\u0435\u0441\u044f\u0446. \u0421&nbsp;\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u0433\u043e \u0430\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430&nbsp;\u043d\u0430\u0448\u0435\u043c SQL-\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043c\u044b&nbsp;\u0441\u043c\u043e\u0433\u043b\u0438 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435\u0442, \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0441&nbsp;\u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u044f\u0432\u043a\u0438 \u043e\u0442&nbsp;\u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043d\u043e\u2026 \u0443\u0436\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u0437\u0430&nbsp;3&nbsp;\u0433\u043e\u0434\u0430!<\/p>\n<p>  <\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043a API ESP \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/929\/374\/8eb\/9293748eb6a2fd08d2c004d3a478cb59.png\" alt=\"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043a API ESP\" width=\"435\" height=\"200\"><\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043a\u0440\u043e\u043c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f: \u0440\u0430\u0437\u043c\u0435\u0440 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430 \u0438 \u0434\u0430\u0442\u0430 \u043f\u0435\u0440\u0435\u0441\u0447\u0451\u0442\u0430.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u0430\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 SQL-\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0437\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434.<\/p>\n<p>  <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/0f9\/18b\/b2f\/0f918bb2f65691737dc02d715e639274.png\" alt=\"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0437\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 \u043f\u0440\u0438 \u0430\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 Microsoft SQL-\u0441\u0435\u0440\u0432\u0435\u0440\u0435\" width=\"926\" height=\"409\"><\/p>\n<p>  <\/p>\n<p>\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0433\u043b\u0430\u0432\u043d\u044b\u0445 \u0438 \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043b\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0447\u0430\u0441\u0442\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441 SQL-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u0447\u0442\u0438 \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443.<\/p>\n<p>  <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/2d9\/73f\/11c\/2d973f11c0b1b2c91f94649268f282fb.png\" alt=\"\u0415\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0441 Microsoft SQL-\u0441\u0435\u0440\u0432\u0435\u0440\u0430\" width=\"873\" height=\"381\"><\/p>\n<h2>\u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0438&nbsp;\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441&nbsp;Microsoft SQL Server<\/h2>\n<p>  <\/p>\n<p>\u0412 SQL-\u0431\u0430\u0437\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0443\u0436\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043e\u0442\u0447\u0451\u0442\u0430. \u0414\u043b\u044f \u043d\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u0431\u0430\u0437\u044b \u043c\u044b \u043f\u0438\u0448\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043d\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 Node.js. \u041e\u043d\u0430 \u0438\u043c\u0435\u0435\u0442 \u0432\u0435\u0441\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0441\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0432\u0430\u0442\u044c API-\u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/p>\n<p>  <\/p>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442\u044b \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 API-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437&nbsp;ESP, \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u044e\u0442 \u0432&nbsp;\u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0438&nbsp;\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442 \u0432&nbsp;\u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445 \u0411\u0414. \u041c\u044b&nbsp;\u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0437\u0430\u0434\u0430\u0447 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0438\u0441\u044c \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e&nbsp;\u043d\u043e\u0447\u0430\u043c.<\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0443&nbsp;\u043d\u0430\u0441 \u0432&nbsp;\u0431\u0430\u0437\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441&nbsp;\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u0438&nbsp;\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0432&nbsp;\u043e\u0442\u0447\u0451\u0442\u044b Power BI&nbsp;\u043d\u0435&nbsp;\u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442: \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0441\u0442\u043e\u043b\u044c\u043a\u043e, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u044b&nbsp;\u0437\u0430\u0445\u043e\u0442\u0438\u043c.<\/p>\n<p>  <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/d64\/fa9\/d99\/d64fa9d9966babdc7a5e8394512f50d3.png\" alt=\"\u0418\u043c\u043f\u043e\u0440\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 Mindbox \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Microsoft SQL-\u0441\u0435\u0440\u0432\u0435\u0440\u0430\" width=\"1920\" height=\"1080\"><\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b&nbsp;\u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e&nbsp;\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u0445 \u043f\u043e&nbsp;\u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430\u043c \u0438\u0437&nbsp;Mindbox. \u0412&nbsp;\u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435&nbsp;\u2014 \u044d\u0442\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u043e \u0441&nbsp;\u043f\u0438\u0441\u044c\u043c\u043e\u043c, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u043f\u043e&nbsp;\u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0443 \u00ab\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e\u2192\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e\u2192\u043e\u0442\u043a\u0440\u044b\u0442\u043e\u2192\u043a\u043b\u0438\u043a\u043d\u0443\u043b\u0438 \u043f\u043e&nbsp;\u0441\u0441\u044b\u043b\u043a\u0435 \u0432&nbsp;\u043f\u0438\u0441\u044c\u043c\u0435\u2192\u043f\u043e\u043f\u0430\u043b\u043e \u0432&nbsp;\u0441\u043f\u0430\u043c\u00bb.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043d\u0430\u0434\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430&nbsp;\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043d\u0435&nbsp;\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0435, \u043d\u043e&nbsp;\u0432\u0430\u0436\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b.<\/p>\n<p>  <\/p>\n<ol>\n<li>Mindbox \u043e\u0442\u0434\u0430\u0451\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u0435\u0434\u0438\u043d\u044b\u043c \u043f\u043e\u0442\u043e\u043a\u043e\u043c, \u0430 \u043f\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e. \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043d\u0430 \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441 \u2014 10 000, \u043d\u043e \u043b\u0443\u0447\u0448\u0435 \u0437\u0430\u0431\u0438\u0440\u0430\u0442\u044c \u043f\u043e 500-1000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u2014 \u0442\u0430\u043a \u043c\u0435\u043d\u044c\u0448\u0435 \u043e\u0448\u0438\u0431\u043e\u043a API. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430 \u043e\u0434\u0438\u043d \u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u0412\u0430\u0436\u043d\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u044d\u0442\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0441\u044c \u0432 \u0442\u043e\u043c \u0436\u0435 \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u043a\u0430\u043a \u0443 Mindbox.<\/li>\n<li>\u0412&nbsp;API Mindbox \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441&nbsp;\u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0435\u0439. \u041d\u0430\u043c \u0432\u0430\u0436\u043d\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c c&nbsp;\u0443\u0447\u0451\u0442\u043e\u043c&nbsp;ID (\u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430) \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0430&nbsp;\u0437\u043d\u0430\u0447\u0438\u0442, \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435&nbsp;\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, ID&nbsp;\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e, \u0435\u0441\u043b\u0438 \u043c\u044b&nbsp;\u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0437\u0430&nbsp;\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434.<\/li>\n<li>\u0421\u043a\u0440\u0438\u043f\u0442 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u0434\u043e\u043b\u0433\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0430\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043f\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u0422\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u0430&nbsp;\u043d\u0435&nbsp;\u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u0441\u0451 \u0441\u043d\u0430\u0447\u0430\u043b\u0430.<\/li>\n<li>\u041b\u044e\u0431\u043e\u0439 API-\u0437\u0430\u043f\u0440\u043e\u0441 \u043a&nbsp;Mindbox \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u043e\u0439 \u043f\u043e&nbsp;\u0440\u0430\u0437\u043d\u044b\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c. \u0421\u043a\u0440\u0438\u043f\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u044b\u043b\u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u043c\u0438 \u0438&nbsp;\u043f\u043e\u043b\u043d\u044b\u043c\u0438, \u0431\u0435\u0437 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043e\u0432. \u0415\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0430, \u0442\u043e&nbsp;\u043c\u044b&nbsp;\u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445. \u0414\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u043e\u0431\u0440\u0430\u043d\u044b \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430.<\/li>\n<li>Mindbox \u043e\u0442\u0434\u0430\u0451\u0442 \u00ab\u0441\u044b\u0440\u044b\u0435\u00bb \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0435&nbsp;\u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043e\u0442\u0447\u0451\u0442\u043d\u043e\u0441\u0442\u0438. \u041d\u0430&nbsp;SQL-\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0430\u0433\u0440\u0435\u0433\u0430\u0446\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0445, \u0447\u0442\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438&nbsp;\u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442 \u0438\u0445&nbsp;\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0432&nbsp;\u043e\u0442\u0447\u0451\u0442\u0430\u0445 Power BI.<\/li>\n<\/ol>\n<p>  \u041f\u043e&nbsp;\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0432\u043e\u0434\u0443 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 Mindbox \u0418\u043b\u044c\u0438 \u0426\u044b\u0440\u0443\u043b\u044c\u043d\u0438\u043a\u043e\u0432\u0430:  <\/p>\n<p>\u00ab\u0412&nbsp;\u0438\u044e\u043d\u0435 2020 \u0433\u043e\u0434\u0430 \u043c\u044b&nbsp;\u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 API \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e \u0438&nbsp;\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0440\u0430\u0437\u0443 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043e\u0431\u044a\u0451\u043c \u0434\u0430\u043d\u043d\u044b\u0445. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0434\u043d\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432\u0441\u0435 \u0437\u0430\u043a\u0430\u0437\u044b \u0437\u0430&nbsp;\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043f\u043e\u043b\u0433\u043e\u0434\u0430.<\/p>\n<p>  <\/p>\n<p>\u0412&nbsp;\u0431\u0443\u0434\u0443\u0449\u0435\u043c \u043c\u044b&nbsp;\u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0439 \u0438\u0437&nbsp;BI-\u0441\u0438\u0441\u0442\u0435\u043c. \u0421\u044b\u0440\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432&nbsp;BI \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0431\u0435\u0437 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0438&nbsp;\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445\u00bb.<\/p>\n<h2>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445 Microsoft SQL<\/h2>\n<p>  <\/p>\n<p>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<ol>\n<li>\u0423\u0437\u043d\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 ID&nbsp;\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b&nbsp;\u0443\u0441\u043f\u0435\u043b\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432&nbsp;\u043d\u0430\u0448\u0435\u0439 \u0431\u0430\u0437\u0435.<\/li>\n<li>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 API Mindbox \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, ID&nbsp;\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 ID&nbsp;\u0432 \u043d\u0430\u0448\u0435\u0439 \u0431\u0430\u0437\u0435. \u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043a\u0430 \u043d\u0435\u0442, \u0442\u043e&nbsp;\u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0441&nbsp;\u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e ID.<\/li>\n<li>\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b, \u0442\u043e&nbsp;\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0438\u0445&nbsp;\u0432&nbsp;\u043d\u0430\u0448\u0443 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a&nbsp;\u043f\u0443\u043d\u043a\u0442\u0443 1. \u0415\u0441\u043b\u0438&nbsp;\u0436\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435\u0442, \u0437\u043d\u0430\u0447\u0438\u0442, \u043c\u044b&nbsp;\u043b\u0438\u0431\u043e \u0441\u043e\u0431\u0440\u0430\u043b\u0438 \u0438\u0445&nbsp;\u0432\u0441\u0435 \u0440\u0430\u043d\u044c\u0448\u0435, \u043b\u0438\u0431\u043e Mindbox \u0432\u0435\u0440\u043d\u0443\u043b \u043e\u0448\u0438\u0431\u043a\u0443.<\/li>\n<\/ol>\n<p>  <\/p>\n<p>\u041f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435. \u0422\u0430\u043a \u043c\u044b&nbsp;\u043c\u043e\u0436\u0435\u043c \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e \u043f\u043e\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438&nbsp;\u0430\u043a\u0442\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c&nbsp;\u0435\u0451.<\/p>\n<p>  <\/p>\n<p>  <\/p>\n<p>  <\/p>\n<pre>&lt;code&gt; \/* MSSQL *\/ const config = require('.\/config.js'); \/** \u041e\u0436\u0438\u0434\u0430\u0435\u043c\u043e\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430: module.exports = {  mssql: { user: 'sa', password: 'mssqlpassword', server: 'mssqlhost', database: 'mssqldbname', connectionTimeout: 60000, requestTimeout: 60000 },  mindbox_api_key: '\u043a\u043b\u044e\u0447_\u0434\u043e\u0441\u0442\u0443\u043f\u0430_\u043a_API_mindbox' }; **\/  const async = require('async'); const request = require('request'); const https = require(&quot;https&quot;); const sql = require('mssql'); var parseString = require('xml2js').parseString; var _ = require('lodash'); var iconv = require('iconv-lite');  \/\/\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a SQL-\u0441\u0435\u0440\u0432\u0435\u0440\u0443 sql.connect(config.mssql, err =&gt; { \/\/ Query if (err) { console.log('SQL connect error: ', err, config.mssql); } })  sql.on('error', err =&gt; { console.log('SQL server error: ', err); \/\/ ... error handler })  setTimeout(function() { \/\/\u0411\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b var operarions = ['EksportDejstvijPoRuchnym', 'EksportDejstvijPoRassylkam', 'EksportDejstvijPoRassylkamSkandinavskij', 'EksportDejstvijPoRassylkamNovoe', 'EksportDejstvijPoRassylkamSkolkovskij', 'EksportDejstvijPoRassylkamDsk1', 'EksportDejstvijPoRassylkamDyxanie', 'EksportDejstvijPoRassylkamPokolenie', 'EksportDejstvijPoRassylkamFsk']; async.forEach(operarions, function(operation, cb1) { mbxChunk(operation, cb1); }, function(err, res) { if (err) { sql.close(); process.exit(); return; } console.log('DONE!'); sql.close(); process.exit(); } ) }, 1000);  \/** * \u0420\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 *\/ function mbxChunk(operation, cb) { console.log('New Chunk '+operation); var sqlreq = new sql.Request(); \/\/\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 mindboxId \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0447\u0442\u043e\u0431\u044b \u0437\u043d\u0430\u0442\u044c, \u0441 \u043a\u0430\u043a\u043e\u0433\u043e ID \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 sqlreq.query(&quot;SELECT MAX(mindboxId) AS last FROM &quot;+config.mssql.database+&quot;.dbo.&quot;+operation+&quot;;&quot;, function(err, maxres) { if (err || !maxres.recordset[0]) { console.log('MsSQL SELECT MAX error: ', err); cb(err); return; } var chunk = parseInt(maxres.recordset[0].last || 0) + 1;  \/\/\u041f\u043e\u043b\u0443\u0447\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 ID=chunk mbxCall(operation, chunk, function(err, xml) { console.log(operation + ' from #' + chunk.toString() + ' started'); if (err) { console.log(operation + ' from #' + chunk.toString() + ': Mindbox API request error: ', err); cb(err); } parseString(xml, function(err, res) { if (err) { console.log(operation + ' from #' + chunk.toString() + ': Mindbox returns invalid XML, parse error: ', err); console.log(xml); cb(err); } if (res &amp;&amp; res.result &amp;&amp; res.result.status == 'Success') { var rows = res.result.customerActions ? res.result.customerActions[0].customerAction : []; if (rows.length &gt; 0) { mbxHandle(operation, rows, function(err, res) { console.log(operation + ' from #' + chunk.toString() + ' + '+rows.length.toString()+' done!'); mbxChunkCopy(operation, cb); }); } else { console.log(operation + ' - data is over!'); cb(); } } else { console.log(operation + ' from #' + chunk.toString() + ': Mindbox returns unsuccessfull result: ', res); cb(err); } }); }) }) }  function mbxChunkCopy(operation, cb) { mbxChunk(operation, cb); }  \/** * \u0417\u0430\u043f\u0440\u043e\u0441 \u043a API Mindbox * \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c 1000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439. ID \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441\u043e startId *\/ function mbxCall(operation, startId, cb) { var request = require(&quot;request&quot;); var options = { method: 'POST', url: 'https:\/\/api.mindbox.ru\/v3\/operations\/sync', qs: { endpointId: 'fskuniversalpoint', operation: operation }, headers: { &quot;Cache-Control&quot;: &quot;no-cache&quot;, &quot;Content-Type&quot;: &quot;application\/xml&quot;, &quot;Accept&quot;: &quot;application\/xml&quot;, &quot;Authorization&quot;: 'Mindbox secretKey=&quot;'+config.mindbox_api_key+'&quot;' }, body: '&lt;operation&gt;\\r\\n  &lt;page&gt;\\r\\n    &lt;firstmindboxid&gt;' + startId.toString() + '&lt;\/firstmindboxid&gt;\\r\\n    &lt;pagenumber&gt;1&lt;\/pagenumber&gt;\\r\\n    &lt;itemsperpage&gt;1000&lt;\/itemsperpage&gt;\\r\\n  &lt;\/page&gt;\\r\\n&lt;\/operation&gt;' };  request(options, function (error, response, body) { cb(error, body); }); }  \/** * \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0431\u043b\u043e\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442 Mindbox * \u0417\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 table MsSQL *\/ function mbxHandle(table, rows, cb) { console.log(rows.length.toString() + ' items to save into '+table); var i = 0;  async.forEach(rows, function(row, cb1) { try { var sqlreq = new sql.Request(); sqlreq.input('mindboxId', sql.Int, parseInt(row.ids[0].mindboxId[0])); sqlreq.input('transactionId', sql.VarChar, (row.ids[0].transactionId ? row.ids[0].transactionId[0] : '')); sqlreq.input('systemName', row.actionTemplate[0].systemName[0]); sqlreq.input('name', sql.NVarChar, row.actionTemplate[0].name[0]); sqlreq.input('dateTimeUtc', sql.DateTime, new Date(row.dateTimeUtc[0])); sqlreq.input('pointOfContact_externalId', sql.VarChar, row.pointOfContact[0].ids[0].externalId[0]); sqlreq.input('customer_mindboxId', sql.VarChar, (row.customer[0].ids[0] ? row.customer[0].ids[0].mindboxId[0] : '')); sqlreq.input('customer_webSiteId', sql.VarChar, (row.customer[0].ids[0].webSiteId ? row.customer[0].ids[0].webSiteId[0] : '')); sqlreq.input('channel', sql.VarChar, (row.mailing &amp;&amp; row.mailing[0].channel ? row.mailing[0].channel[0] : '')); sqlreq.input('action', sql.VarChar, (row.mailing &amp;&amp; row.mailing[0].action ? row.mailing[0].action[0] : '')); sqlreq.input('notSentReason_name', sql.VarChar, row.ids[0].mindboxId[0]); sqlreq.input('notSentReason_systemName', sql.VarChar, (row.mailing &amp;&amp; row.mailing[0].notSentReason &amp;&amp;  row.mailing[0].notSentReason[0].name ? row.mailing[0].notSentReason[0].name[0] : '')); sqlreq.input('groupingKey', sql.VarChar, (row.mailing &amp;&amp; row.mailing[0].groupingKey ? row.mailing[0].groupingKey[0] : '')); sqlreq.input('link', sql.VarChar, (row.mailing &amp;&amp; row.mailing[0].link ? row.mailing[0].link[0] : '')); sqlreq.input('viewEmailMessageUrl', sql.VarChar, (row.mailing &amp;&amp; row.mailing[0].viewEmailMessageUrl ? row.mailing[0].viewEmailMessageUrl[0] : '')); var q = &quot;INSERT INTO &quot;+config.mssql.database+&quot;.dbo.&quot;+table + &quot; (mindboxId, transactionId, systemName, name, dateTimeUtc, pointOfContact_externalId, customer_mindboxId, customer_webSiteId, channel, [action], notSentReason_name, notSentReason_systemName, groupingKey, link, viewEmailMessageUrl)&quot; + &quot; VALUES(@mindboxId, @transactionId, @systemName, @name, @dateTimeUtc, @pointOfContact_externalId, @customer_mindboxId, @customer_webSiteId, @channel, @action, @notSentReason_name, @notSentReason_systemName, @groupingKey, @link, @viewEmailMessageUrl);&quot;; } catch (err) { console.log('MsSQL input vars error: ', err, JSON.stringify(row)); return cb1(err); } sqlreq.query(q, function(err, r) { if (err) { console.log('MsSQL query error: ', err, JSON.stringify(row)); } cb1(err, r); }) }, function(err, r) { cb(err, r); }); } &lt;\/code&gt;<\/pre>\n<p>  <\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u044b, \u043c\u044b&nbsp;\u043f\u043e&nbsp;\u043d\u0438\u043c \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u043e\u0442 \u0442\u0430\u043a\u0438\u0435 \u043e\u0442\u0447\u0451\u0442\u044b.<\/p>\n<p>  <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/e1b\/763\/f84\/e1b763f8481d28a292fe9e90652b8e17.jpg\" alt=\"\u041f\u0440\u0438\u043c\u0435\u0440 \u043e\u0442\u0447\u0451\u0442\u0430 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u043c\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Microsoft SQL\" width=\"1364\" height=\"736\"><\/p>\n<p>  <\/p>\n<p>\u0412&nbsp;\u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 Power BI&nbsp;\u043c\u043e\u0436\u043d\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u0443\u044e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437&nbsp;Mindbox \u0441&nbsp;\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0430\u043a\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430:<\/p>\n<p>  <\/p>\n<pre>&lt;code&gt;let \/\/ \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 Mindbox    ExportAction = (name as text, page as number)=&gt;let    Source=Xml.Tables(Web.Contents(&quot;https:\/\/api.mindbox.ru\/v3\/&quot;,                      [Headers=[#&quot;content-type&quot;=&quot;application\/xml&quot;,Accept=&quot;application\/xml&quot;,Authorization=&quot;Mindbox secretKey=&quot;&quot;\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425&quot;&quot;&quot;],                      RelativePath=&quot;operations\/sync&quot;,                      Query=[endpointId=&quot;\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425\u0425&quot;,operation=name],                      Content=Text.ToBinary(&quot;&lt;operation&gt;&lt;page&gt;&lt;firstmindboxid&gt;0&lt;\/firstmindboxid&gt;&lt;pagenumber&gt;&quot;&amp;Number.ToText(page)&amp;&quot;&lt;\/pagenumber&gt;&lt;itemsperpage&gt;10000&lt;\/itemsperpage&gt;&lt;\/page&gt;&lt;\/operation&gt;&quot;)])),    Data= try Source{0}[customerActions] otherwise null \/\/ \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0447\u0442\u043e \u043e\u0442\u0432\u0435\u0442 \u043d\u0435\u043f\u0443\u0441\u0442\u043e\u0439 in    Data, \/\/ \u043d\u0430\u0447\u0430\u043b\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b    name=&quot;XXXXXXXXXXX&quot;,  \/\/ \u0437\u0430\u0434\u0430\u0451\u043c \u0438\u043c\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432 Mindbox    Source = List.Generate( ()=&gt;                                            \/\/ \u0446\u0438\u043a\u043b\u043e\u043c \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0432\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043e\u0442 Mindbox             [Result = ExportAction(name, 1), Page = 1],                    \/\/ \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0434\u0430\u043d\u043d\u044b\u0445.             each [Result] &lt;&gt; null,                                         \/\/ \u0435\u0441\u043b\u0438 \u043e\u0442\u0432\u0435\u0442 \u043f\u0443\u0441\u0442\u043e\u0439, \u0442\u043e \u043a\u043e\u043d\u0435\u0446 \u0446\u0438\u043a\u043b\u0430             each [Result = ExportAction(name,[Page]+1), Page = [Page]+1],  \/\/ \u0438\u043d\u0430\u0447\u0435 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0434\u0430\u043d\u043d\u044b\u0445             each [Result]), \/\/ \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443     #&quot;Converted to Table&quot; = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error) \/\/   * \/\/   * \/\/   \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \/\/   * \/\/   * \/\/   result = .......... in     result&lt;\/code&gt;<\/pre>\n<p>  <\/p>\n<p>\u0418&nbsp;\u043e\u043d&nbsp;\u0434\u0430\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u0427\u0430\u0441\u0430 2-3. \u0418, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u044b&nbsp;\u0441\u043e\u0431\u0435\u0440\u0451\u0442\u0435, \u0435\u0441\u043b\u0438 \u0443&nbsp;\u0432\u0430\u0441 \u043d\u0435&nbsp;\u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432 \u0438&nbsp;\u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438 \u0432\u044b\u0445\u043e\u0434\u044f\u0442 \u043d\u0435&nbsp;\u043e\u0447\u0435\u043d\u044c \u0447\u0430\u0441\u0442\u043e.<\/p>\n<p>  <\/p>\n<p>\u0412&nbsp;\u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435&nbsp;\u0432\u044b, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d. \u0418&nbsp;\u0434\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b \u043d\u0435&nbsp;\u0431\u0443\u0434\u0443\u0442. \u041f\u0440\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0440\u0435\u043a\u0440\u0430\u0442\u0438\u0442 \u0441\u0432\u043e\u044e \u0440\u0430\u0431\u043e\u0442\u0443, \u0430&nbsp;\u0432\u0441\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435&nbsp;\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0430\u043f\u0434\u0435\u0439\u0442\u0430 \u0432 \u0444\u0435\u0432\u0440\u0430\u043b\u0435 2020 \u0432 PowerQuery \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0430\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c (\u0434\u043e\u0433\u0440\u0443\u0436\u0430\u0442\u044c) \u0434\u0430\u043d\u043d\u044b\u0435, \u043d\u043e \u043f\u043e\u043a\u0430 \u044d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439, \u0434\u0430 \u0438 \u043d\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 API \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c.<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432&nbsp;Power BI&nbsp;\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u043d\u0430&nbsp;SQL-\u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0442\u043e&nbsp;\u0437\u0430\u043f\u0440\u043e\u0441 \u0431\u0443\u0434\u0435\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435 \u0438&nbsp;\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0431\u0443\u0434\u0435\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435&nbsp;\u2014 \u0432\u0441\u0435\u0433\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434.<\/p>\n<p>  <\/p>\n<p>\u0410&nbsp;\u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a (\u0441\u0440\u0430\u0432\u043d\u0438\u0442\u0435 \u0441&nbsp;\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u043a&nbsp;API):<\/p>\n<p>  <\/p>\n<pre>&lt;code&gt; let Source = Sql.Database(&quot;ServerName\u00ab, \u00abDataBase\u00bb), Result = Source{&#91;Schema=&quot;dbo&quot;,Item=&quot;TableName&quot;]}&#91;Data] in Result &lt;\/code&gt;<\/pre>\n<p>  <\/p>\n<p>\u0410 \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u043e\u0434\u0443\u043c\u0430\u043b\u0438 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0442\u0430\u0431\u043b\u0438\u0446 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 Power query \u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f.<\/p>\n<h2>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0442\u0447\u0451\u0442 \u0432&nbsp;Power BI<\/h2>\n<p>  <\/p>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043e\u0442\u0447\u0451\u0442 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043d\u0430&nbsp;\u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437&nbsp;Mindbox \u0438&nbsp;Google Analytics.<\/p>\n<p>  <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/aae\/bd3\/fff\/aaebd3fff86c4fa89626c19330db1bbd.png\" alt=\"\u041e\u0442\u0447\u0451\u0442 \u0432 Power BI, \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Microsoft SQL\" width=\"1651\" height=\"899\"><\/p>\n<p>  <\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044f \u0438\u0437\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0439 \u0432\u044b\u0448\u0435 \u043c\u0435\u0442\u043e\u0434\u0438\u043a\u0435, \u043a\u0430\u0436\u0434\u0443\u044e \u043d\u043e\u0447\u044c \u0432&nbsp;\u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430&nbsp;SQL-\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437&nbsp;Mindbox \u0438&nbsp;Google Analytics (\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0435\u0437 \u0441\u044d\u043c\u043f\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f), \u0437\u0430\u0442\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0438&nbsp;\u0430\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441&nbsp;SQL-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u0432&nbsp;\u043e\u0442\u0447\u0451\u0442 \u043d\u0430&nbsp;\u0441\u0435\u0440\u0432\u0435\u0440\u0435 Power BI.<\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0443\u0436\u0435 \u043a&nbsp;\u043d\u0430\u0447\u0430\u043b\u0443 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0434\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0432&nbsp;\u043e\u0442\u0447\u0451\u0442\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<\/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:\/\/habr.com\/ru\/post\/506740\/\"> https:\/\/habr.com\/ru\/post\/506740\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/506740\/\">\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b&nbsp;\u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432&nbsp;\u0440\u0435\u043a\u043b\u0430\u043c\u0443, \u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0451 \u0438\u0437\u043c\u0435\u0440\u044f\u0442\u044c: \u043f\u0438\u0441\u044c\u043c\u0430, \u0432\u0438\u0437\u0438\u0442\u044b, \u0437\u0430\u043a\u0430\u0437\u044b, \u0432\u044b\u0440\u0443\u0447\u043a\u0443. \u0412\u0430\u0436\u043d\u0430 \u0438&nbsp;\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u043c\u0435\u0442\u0440\u0438\u043a. \u0414\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u0438&nbsp;\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0435 \u043e\u0442\u0447\u0451\u0442\u044b \u0432&nbsp;Microsoft Power BI. \u0410&nbsp;\u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u043e\u0442\u0447\u0451\u0442\u043e\u0432 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0438\u0445&nbsp;\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0432&nbsp;\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0431\u0430\u0437\u0435. \u042d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043c\u043d\u043e\u0433\u043e, \u0438&nbsp;\u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0435\u0451&nbsp;\u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0438\u0437&nbsp;\u043e\u043d\u043b\u0430\u0439\u043d-\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u041c\u044b&nbsp;\u0445\u0440\u0430\u043d\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432&nbsp;Microsoft SQL, \u043d\u043e&nbsp;\u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438&nbsp;\u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440&nbsp;\u0411\u0414.<\/p>\n<p>  <\/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-305366","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/305366","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=305366"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/305366\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=305366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=305366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=305366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}