{"id":51362,"date":"2021-08-04T07:01:12","date_gmt":"2021-08-03T23:01:12","guid":{"rendered":"https:\/\/oihelp.corporate.ifs.com\/help\/?page_id=51362"},"modified":"2024-06-28T14:48:48","modified_gmt":"2024-06-28T06:48:48","slug":"using-data-mart","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/connecting-your-data\/using-data-mart\/","title":{"rendered":"Using Data Mart"},"content":{"rendered":"\n<p class=\"overview\">The Data Mart is a database that contains Shift Log entries, and enables data to be extracted from the database, for general use in IFS OI Explorer.<\/p>\n<p class=\"intro-text\">The data mart works by enabling shift log entries to be written to tables in the database. Each General Entry form and Log Entry form writes to its own table, which is named after the form name. All Case Entry forms write to the one Cases table.<\/p>\n<p class=\"intro-text\">External queries can be written to extract Shift Log data from the database, in a format that is easy to use in other systems such as Power BI or SSRS.<\/p>\n<h2 class=\"page-subheading\" style=\"border-top: 1px solid #cccccc;\">Configuring a Data Mart<\/h2>\n<p class=\"intro-text\">A data mart is configured in IFS OI Server Management.<\/p>\n<p class=\"intro-text\">1. Open IFS OI Server Management, and click the <strong>Connections<\/strong> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-51425\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/Connection-1.png\" alt=\"\" width=\"20\" height=\"20\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/Connection-1.png 202w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/Connection-1-150x150.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/Connection-1-48x48.png 48w\" sizes=\"auto, (max-width: 20px) 100vw, 20px\" \/> icon.<\/p>\n<p class=\"intro-text\">2. Click <strong>Data Mart<\/strong> and fill in the fields as required.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/2-5.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-51529\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/2-5-600x251.png\" alt=\"\" width=\"850\" height=\"356\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/2-5-600x251.png 600w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/2-5-768x321.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/2-5-150x63.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/2-5-1080x452.png 1080w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/2-5-1280x535.png 1280w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/2-5-48x20.png 48w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/2-5.png 1327w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/a><\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 4.87692%;\"><strong>3.<\/strong><\/td>\n<td style=\"width: 20.9843%;\"><strong>Enable<\/strong><\/td>\n<td style=\"width: 74.1387%;\">Select the checkbox to enable the Data Mart.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 4.87692%;\"><strong>4.<\/strong><\/td>\n<td style=\"width: 20.9843%;\"><strong>Server<\/strong><\/td>\n<td style=\"width: 74.1387%;\">Enter the name of the Microsoft SQL Server machine you want to connect to.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 4.87692%;\"><strong>5.<\/strong><\/td>\n<td style=\"width: 20.9843%;\"><strong>Database<\/strong><\/td>\n<td style=\"width: 74.1387%;\">Enter the name of the Microsoft SQL Server database you want your Shift Log entries written to.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 4.87692%;\"><strong>6.<\/strong><\/td>\n<td style=\"width: 20.9843%;\"><strong>Trusted connection<\/strong><\/td>\n<td style=\"width: 74.1387%;\">Select the checkbox to use a trusted connection.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 4.87692%;\"><strong>7.<\/strong><\/td>\n<td style=\"width: 20.9843%;\"><strong>Log on<\/strong><\/td>\n<td style=\"width: 74.1387%;\">Enter username and password if a trusted connection is not being used.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 4.87692%;\"><strong>8.<\/strong><\/td>\n<td style=\"width: 20.9843%;\"><strong>Save<\/strong><\/td>\n<td style=\"width: 74.1387%;\">Click <strong>Save<\/strong>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"note\">Note: Only one data mart connection is active at a time.<\/p>\n<h2 class=\"page-subheading\" style=\"border-top: 1px solid #cccccc;\">Using a Data Mart<\/h2>\n<p class=\"intro-text\">Shift Log entry forms can be set up to write to the database you specified in your data mart configuration.<\/p>\n<h3>Setting up the Entry Forms<\/h3>\n<p class=\"intro-text\">To set up a form to use the data mart:<\/p>\n<p class=\"intro-text\">1. Open IFS OI Server Management, and click the <strong>Shift Log<\/strong> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-51478\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/Shift-Log-3.png\" alt=\"\" width=\"21\" height=\"20\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/Shift-Log-3.png 203w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/Shift-Log-3-150x141.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/Shift-Log-3-48x45.png 48w\" sizes=\"auto, (max-width: 21px) 100vw, 21px\" \/> icon.<\/p>\n<p class=\"intro-text\">2. Click <b>Case Entry Forms, Log Entry Forms,\u00a0<\/b>or\u00a0<b>General Entry Forms<\/b>.<\/p>\n<p class=\"intro-text\">3.<span style=\"font-family: 'Segoe UI', Arial, sans-serif;\">\u00a0Click the\u00a0<\/span><strong>Add Form<\/strong><span style=\"font-family: 'Segoe UI', Arial, sans-serif;\"> button, or click the form you want to edit.<\/span><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/6-3.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-51531\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/6-3-600x224.png\" alt=\"\" width=\"850\" height=\"317\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/6-3-600x224.png 600w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/6-3-768x287.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/6-3-1536x573.png 1536w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/6-3-150x56.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/6-3-1080x403.png 1080w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/6-3-1280x478.png 1280w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/6-3-48x18.png 48w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/6-3.png 1629w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/a><\/p>\n<p class=\"intro-text\">4. Complete the form details.<\/p>\n<p class=\"intro-text\">5. Select the <strong>Write to Data Mart<\/strong> checkbox.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/7-3.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-51533 size-medium\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/7-3-600x671.png\" alt=\"\" width=\"600\" height=\"671\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/7-3-600x671.png 600w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/7-3-134x150.png 134w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/7-3-43x48.png 43w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/7-3.png 610w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p class=\"intro-text\">6. Click Save.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/F.png\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-51489\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/F.png\" alt=\"\" width=\"80\" height=\"37\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/F.png 210w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/F-150x69.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/F-48x22.png 48w\" sizes=\"auto, (max-width: 80px) 100vw, 80px\" \/><\/a><\/p>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/entries\/forms\/\">Forms<\/a><\/p>\n<h3>Writing to the Database<\/h3>\n<p class=\"intro-text\">When you enter data into a form that has the Write to Data Mart checkbox selected, a table of data is created in the database you specified in your data mart configuration.<\/p>\n<p class=\"intro-text\">Different forms write to different tables.<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"width: 10%;\">\u00a0<\/td>\n<td style=\"width: 30%;\"><strong>Case Entry<\/strong><\/td>\n<td style=\"width: 30%;\"><strong>Log Entry<\/strong><\/td>\n<td style=\"width: 30%;\"><strong>General Entry<\/strong><\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"width: 10%;\"><strong>Table name<\/strong><\/td>\n<td style=\"width: 30%;\">\n<p>All case entry forms write to the table:<\/p>\n<p>exrp.Cases.<\/p>\n<\/td>\n<td style=\"width: 30%;\">\n<p>Each log entry form generates a separate table:<\/p>\n<p>exrp.<em>Form Name<\/em>_Log Entry_ShiftLog<\/p>\n<p>Where <em>Form Name<\/em> is the name of the log entry form.<\/p>\n<\/td>\n<td style=\"width: 30%;\">\n<p>Each general entry form generates a separate table:<\/p>\n<p>exrp.<em>Form Name<\/em>_General Entry_ShiftLog<\/p>\n<p>Where <em>Form Name<\/em> is the name of the general entry form.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"intro-text\"><em>Database and tables in Microsoft SQL Server Management Studio:<\/em><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/6-1.png\" rel=\"lightbox-4\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-51526\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/6-1.png\" alt=\"\" width=\"450\" height=\"257\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/6-1.png 457w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/6-1-150x86.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/6-1-48x27.png 48w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 4.87692%;\"><strong>1.<\/strong><\/td>\n<td style=\"width: 20.9843%;\"><strong>Database<\/strong><\/td>\n<td style=\"width: 74.1387%;\">The predefined database specified in the Data Mart configuration.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 4.87692%;\"><strong>2.<\/strong><\/td>\n<td style=\"width: 20.9843%;\"><strong>Log Entry table<\/strong><\/td>\n<td style=\"width: 74.1387%;\">Adakite Log Data form entries are written to this table.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 4.87692%;\"><strong>3.<\/strong><\/td>\n<td style=\"width: 20.9843%;\"><strong>General Entry table<\/strong><\/td>\n<td style=\"width: 74.1387%;\">Adakite Production Data form entries are written to this table.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 4.87692%;\"><strong>4.<\/strong><\/td>\n<td style=\"width: 20.9843%;\"><strong>Cases table<\/strong><\/td>\n<td style=\"width: 74.1387%;\">Adakite Cases Data form entries are written to this table.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"intro-text\"><em>Adakite Log Data_Log Entry_ShiftLog table in Microsoft SQL Server Management Studio:<\/em><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/G.png\" rel=\"lightbox-5\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-51517\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/G-600x46.png\" alt=\"\" width=\"1000\" height=\"76\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/G-600x46.png 600w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/G-768x59.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/G-150x11.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/G-1080x82.png 1080w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/G-1280x98.png 1280w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/G-48x4.png 48w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/07\/G.png 1390w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/using-entries\/entry-form\/\">Entry Dialog<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A data mart is a connection between Shift Log and a predefined Microsoft SQL Server database. The datamart works by enabling shift log entries to be written to tables in the database. External queries can be written to extract Shift Log data from the database, in a format that is easy to use in other systems such as Power BI or SSRS.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/connecting-your-data\/using-data-mart\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":29,"featured_media":51499,"parent":3649,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[4],"tags":[896,20,257,674,330,308,218,270,329,306,251],"class_list":["post-51362","page","type-page","status-publish","has-post-thumbnail","hentry","category-explainer","tag-datamart","tag-dataset","tag-datasources","tag-datatype","tag-integrating-systems","tag-oracle","tag-param","tag-sql-server","tag-system-identifiers","tag-tabular-data","tag-time-zones","Version-4-9-3","Product-srv","Product-shiftlog"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/51362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=51362"}],"version-history":[{"count":69,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/51362\/revisions"}],"predecessor-version":[{"id":67737,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/51362\/revisions\/67737"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/3649"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/51499"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=51362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=51362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=51362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}