{"id":16847,"date":"2024-01-05T10:47:21","date_gmt":"2024-01-05T10:47:21","guid":{"rendered":"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/"},"modified":"2025-12-23T09:46:50","modified_gmt":"2025-12-23T14:46:50","slug":"how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server","status":"publish","type":"post","link":"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/","title":{"rendered":"How to Configure NextGen Archiving in WinCC OA to use a Microsoft SQL Server"},"content":{"rendered":"\n<p>This two-part blog series is intended to be a step-by-step overview on how to set up and utilize an MS SQL Server and WinCC OA\u2019s NextGen Archive (NGA). Information for a general setup exists via the WinCC OA Documentation (see Further Reading\/Links), but this walkthrough aims to be more detailed and explicit in the necessary steps.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.dmcinfo.com\/latest-thinking\/blog\/id\/10546\/wincc-oa--how-to-create-a-microsoft-sql-server-for-nextgen-archiving\">How To Create a Microsoft SQL Server Install for NextGen Archiving<\/a><\/li>\n\n\n\n<li>How to Configure NextGen Archiving in WinCC OA to use Microsoft SQL Server<\/li>\n<\/ol>\n\n\n\n<p><u><a id=\"Table of Contents\" name=\"Table of Contents\"><\/a>Table of Contents:<\/u><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Notes\/Prerequisites<\/li>\n\n\n\n<li>WinCC OA\n \n \n<ol class=\"wp-block-list\">\n<li><a href=\"#2.1 Project Setup\">2.1 Project Setup<span id=\"cke_bm_559C\" style=\"display: none;\">&nbsp;<\/span><\/a><\/li>\n\n\n\n<li><a href=\"#2.2 NGA Configuration\">2.2 NGA Configuration<span id=\"cke_bm_559C\" style=\"display: none;\">&nbsp;<\/span><\/a><\/li>\n\n\n\n<li><a href=\"#2.3 Archive Group Configuration\">2.3 Archive Group Configuration<span id=\"cke_bm_559C\" style=\"display: none;\">&nbsp;<\/span><\/a><\/li>\n\n\n\n<li><a href=\"#2.4 DPE Archive Configuration\">2.4 DPE Archive Configuration<span id=\"cke_bm_559C\" style=\"display: none;\">&nbsp;<\/span><\/a><\/li>\n\n\n\n<li><a href=\"#2.5 Data Retrieval\">2.5 Data Retrieval<span id=\"cke_bm_559C\" style=\"display: none;\">&nbsp;<\/span><\/a><\/li>\n<\/ol>\n<\/li>\n\n\n\n<li>Further Reading\/References<span id=\"cke_bm_559C\" style=\"display: none;\">&nbsp;<\/span><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-1-notes-prerequisites\"><u>1. Notes\/Prerequisites<\/u><\/h2>\n\n\n\n<p><p style=\"margin-bottom:0px;\">Required programs<\/p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.microsoft.com\/en-us\/sql-server\/sql-server-downloads\" target=\"_blank\">Microsoft SQL Server<\/a> (installation instructions in <a href=\"https:\/\/www.dmcinfo.com\/latest-thinking\/blog\/id\/10546\/wincc-oa--how-to-create-a-microsoft-sql-server-for-nextgen-archiving\">part 2a<\/a>)<\/li>\n\n\n\n<li><a href=\"https:\/\/www.microsoft.com\/en-us\/sql-server\/sql-server-downloads\" target=\"_blank\">Microsoft SQL Server Management Studio<\/a><\/li>\n\n\n\n<li>Microsoft SQL Server Configuration Manager (installed alongside Microsoft SQL Server)<\/li>\n<\/ul>\n\n\n\n<p><p style=\"margin-bottom:0px;\">This demo was implemented using:<\/p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WinCC OA 3.18 P006<\/li>\n\n\n\n<li>Microsoft SQL Server 2022 Express\n \n \n<ul class=\"wp-block-list\">\n<li>NOTE: Other versions of MS SQL may work with NGA, but it has not yet been verified by DMC.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Microsoft SQL Server Management Studio 18<\/li>\n\n\n\n<li>Windows 11<\/li>\n<\/ul>\n\n\n\n<p><p style=\"margin-bottom:0px;\">Assumptions:<\/p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Proper licensing for NGA is configured.<\/li>\n\n\n\n<li>The OS user has Windows administrator privileges.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-2-wincc-oa\"><u>2. WinCC OA<\/u><\/h2>\n\n\n<div class=\"faq-question\">\n\n\n<p class=\"faq-question-sub-header\"><u><a id=\"2.1 Project Setup\" name=\"2.1 Project Setup\"><\/a>2.1 Project Setup<\/u><\/p>\n\n\n<div class=\"faq-answer-container\">\n\n\n<p><em><a href=\"#Table of Contents\">Back to Table of Contents<\/a><\/em><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a new project with NGA configured.\n \n \n<ol class=\"wp-block-list\">\n<li>When creating a new project, proceed with the project setup as normal.<\/li>\n\n\n\n<li>Under the \u201cGeneral Settings\u201d step, ensure that the Use <strong>NextGenArchiver<\/strong> option is selected.<\/li>\n\n\n\n<li>For this demo, I\u2019m creating a project titled <strong>NGA_Demo<\/strong> located in the \u201cC:\/WinCC_OA_Proj\u201d directory.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 1\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164415\/sc-1-500.png\"><\/p><\/p>\n\n\n\n<p>If converting an existing project from HDB\/RDB to NGA, then follow these steps in the \u201cConverting existing project to NextGen Archiver Project\u201d section: <a href=\"https:\/\/www.winccoa.com\/documentation\/WinCCOA\/3.18\/en_US\/NGA\/topics\/nga_notes.html\" target=\"_blank\">NGA Notes and Restrictions<\/a>.&nbsp;<\/p>\n\n\n<\/div>\n<\/div>\n<div class=\"faq-question\">\n\n\n<p class=\"faq-question-sub-header\"><u><a id=\"2.2 NGA Configuration\" name=\"2.2 NGA Configuration\"><\/a>2.2 NGA Configuration<\/u><\/p>\n\n\n<div class=\"faq-answer-container\">\n\n\n<p><em><a href=\"#Table of Contents\">Back to Table of Contents<\/a><\/em><\/p>\n\n\n\n<p>It\u2019s time to fire up OA and open GEDI.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create new back-end.\n \n \n<ol class=\"wp-block-list\">\n<li>Navigate to the \u201cDatabase Engineering\u201d window via \u201cSysMgm\/Database\/Database Engineering\u201d.<\/li>\n\n\n\n<li>Under the \u201cBackend list\u201d, click the + icon (<strong>Add new backend<\/strong>).<\/li>\n\n\n\n<li>Name the Backend a user-friendly name.\n  \n  \n<ol class=\"wp-block-list\">\n<li>I used the title <strong>MSSQLEXPRESS<\/strong>.<\/li>\n\n\n\n<li>NOTE: The Backend name does not need to match the server name, so use a name that makes most sense for your application.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 2\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164415\/sc-2-500.png\"><\/p><\/p>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 3\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164414\/sc-3-500.png\"><\/p><\/p>\n\n\n\n<p><p style=\"margin-left: 40px; margin-bottom:0px;\">2. Configure the MS SQL Backend \u201cGeneral Settings \u2013 Basic Co<span id=\"cke_bm_805C\" style=\"display: none;\">&nbsp;<\/span>nfiguration\u201d.&nbsp;<\/p><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Specify the following parameters:<\/li>\n<\/ol>\n\n\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:500px;\">\n<tbody>\n<tr>\n<td>\n\n\n<p><strong>Parameter<\/strong><\/p>\n\n\n<\/td>\n<td>\n\n\n<p><strong>Value<\/strong><\/p>\n\n\n\n<p>Name<\/p>\n\n\n<\/td>\n<td>\n\n\n<p>&lt;User-friendly backend name&gt;<\/p>\n\n\n\n<p>Profile<\/p>\n\n\n<\/td>\n<td>\n\n\n<p>MSSQL_nonRedundant<\/p>\n\n\n\n<p>Database Connection<\/p>\n\n\n<\/td>\n<td>\n\n\n<p>&lt;host&gt;\/&lt;SERVER NAME&gt;<\/p>\n\n\n\n<p>Database Username<\/p>\n\n\n<\/td>\n<td>\n\n\n<p>&lt;winccoaUsername from db.windows.config&gt;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>NOTES:\n \n \n<ol class=\"wp-block-list\">\n<li>The Profile option cannot be changed later.<\/li>\n\n\n\n<li>If using a redundant server, use the MSSQL option for Profile.<\/li>\n\n\n\n<li>Don\u2019t worry about specifying the Password, the field will clear upon initial configuration saving.<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li>Click the Password field, enter the winccoaPassword from db.windows.config, and click OK.<\/li>\n<\/ol>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 4\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164414\/sc-4-500.png\"><\/p><\/p>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 5\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164414\/sc-5-500.png\"><\/p><\/p>\n\n\n\n<p><p style=\"margin-left: 40px; margin-bottom:0px;\">3. Configure the MS SQL Backend \u201cExtended Settings\u201d.<\/p><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Specify the following parameters:<\/li>\n<\/ol>\n\n\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:500px;\">\n<tbody>\n<tr>\n<td>\n\n\n<p><strong>Parameter<\/strong><\/p>\n\n\n<\/td>\n<td>\n\n\n<p><strong>Value<\/strong><\/p>\n\n\n\n<p>Database Control\/ Execution File<\/p>\n\n\n<\/td>\n<td>\n\n\n<p>NGAMSSQLServerBackend<\/p>\n\n\n\n<p>Database specific configuration\/db.database<\/p>\n\n\n<\/td>\n<td>\n\n\n<p>&lt; dbName from db.windows.config&gt;<\/p>\n\n\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 6\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164413\/sc-6-500.png\"><\/p><\/p>\n\n\n\n<p><p style=\"margin-left: 40px; margin-bottom:0px;\">4.&nbsp;Finish MS SQL Backend setup<\/p><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select the <strong>Active<\/strong> option.<\/li>\n\n\n\n<li>Click <strong>Save<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 7\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164413\/sc-7-500.png\"><\/p><\/p>\n\n\n<\/div>\n<\/div>\n<div class=\"faq-question\">\n\n\n<p class=\"faq-question-sub-header\"><u><a id=\"2.3 Archive Group Configuration\" name=\"2.3 Archive Group Configuration\"><\/a>2.3 Archive Group Configuration<\/u><\/p>\n\n\n<div class=\"faq-answer-container\">\n\n\n<p><em><a href=\"#Table of Contents\">Back to Table of Contents<\/a><\/em><\/p>\n\n\n\n<p>Now that the database connection has been established, we can set up Archive Groups.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create new archi<span id=\"cke_bm_278C\" style=\"display: none;\">&nbsp;<\/span>ve group\n\n \n \n<ol class=\"wp-block-list\">\n<li>Navigate to the \u201cRuntime Engineering\u201d window via \u201cSysMgm\/Database\/Runtime Engineering\u201d.<\/li>\n\n\n\n<li>Under the \u201cArchive Groups\u201d, click the + icon (<strong>Add a new group<\/strong>).<\/li>\n\n\n\n<li>Name the Archive Group.<\/li>\n\n\n\n<li>I used the title <strong>DEMO<\/strong>.<\/li>\n\n\n\n<li>Ensure the <strong>Active<\/strong> option is selected.<\/li>\n\n\n\n<li>Configure the \u201cStorage Settings\u201d section as desired.<\/li>\n\n\n\n<li>Click <strong>Save<\/strong>.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 8\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164413\/sc-8-500.png\"><\/p><\/p>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 9\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164412\/sc-9-500.png\"><\/p><\/p>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 10\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164412\/sc-10-500.png\"><\/p><\/p>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 11\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164411\/sc-11-500.png\"><\/p><\/p>\n\n\n\n<p><p style=\"margin-left: 40px; margin-bottom:0px;\">2. Verify SQL Archive Group Creation<\/p><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open Microsoft SQL Server Management Studio.<\/li>\n\n\n\n<li>Right click dbo.archive_groups and select the Select Top 1000 Rows option.\n \n \n<ol class=\"wp-block-list\">\n<li>The new archive group should be visible in the \u201cResults\u201d section.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 12\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164411\/sc-12-500.png\"><\/p><\/p>\n\n\n<\/div>\n<\/div>\n<div class=\"faq-question\">\n\n\n<p class=\"faq-question-sub-header\"><u><a id=\"2.4 DPE Archive Configuration\" name=\"2.4 DPE Archive Configuration\"><\/a>2.4 DPE Archive Configuration<\/u><\/p>\n\n\n<div class=\"faq-answer-container\">\n\n\n<p><em><a href=\"#Table of Contents\">Back to Table of Contents<\/a><\/em><\/p>\n\n\n\n<p>Now that we\u2019ve created an archive group, we can apply the archive group to a DPE so that its historical data can be logged and tracked.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Insert _archive config\n \n \n<ol class=\"wp-block-list\">\n<li>Within PARA, right click the target DP or DPE and select the Insert config option.<\/li>\n\n\n\n<li>Select <strong>Archive settings<\/strong>.<\/li>\n\n\n\n<li>Click <strong>OK<\/strong>.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 13\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164411\/sc-13-500.png\"><\/p><\/p>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 14\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164410\/sc-14-500.png\"><\/p><\/p>\n\n\n\n<p><p style=\"margin-left: 40px; margin-bottom:0px;\">2. Select archive group<\/p><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Underneath the target DP\/DPE, select the new _<strong>archive<\/strong> option.<\/li>\n\n\n\n<li>Select the desired archive group in the \u201cArchive Group\u201d drop-down.<\/li>\n\n\n\n<li>Ensure the <strong>Active<\/strong> option is selected.<\/li>\n\n\n\n<li>Click <strong>OK<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 15\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164410\/sc-15-500.png\"><\/p><\/p>\n\n\n\n<p><p style=\"margin-left: 40px; margin-bottom:0px;\">3. Verify SQL Archive Group Application<\/p><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open Microsoft SQL Server Management Studio.<\/li>\n\n\n\n<li>Right click dbo.elements and select the Select Top 1000 Rows option.\n \n \n<ol class=\"wp-block-list\">\n<li>The newly configured DPE(s) should be visible in the \u201cResults\u201d section.&nbsp;<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 16\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164409\/sc-16-500.png\"><\/p><\/p>\n\n\n<\/div>\n<\/div>\n<div class=\"faq-question\">\n\n\n<p class=\"faq-question-sub-header\"><u><a id=\"2.5 Data Retrieval\" name=\"2.5 Data Retrieval\"><\/a>2.5 Data Retrieval<\/u><\/p>\n\n\n<div class=\"faq-answer-container\">\n\n\n<p><em><a href=\"#Table of Contents\">Back to Table of Contents<\/a><\/em><\/p>\n\n\n\n<p>Now that DPEs have been configured with archiving capabilities, we can now retrieve DPEs\u2019 historical data.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Verify SQL DPE Archiving.\n \n \n<ol class=\"wp-block-list\">\n<li>Open Microsoft SQL Server Management Studio.<\/li>\n\n\n\n<li>Right click dbo.event_&lt;segment_id&gt;_a and select Select Top 1000 Rows.\n  \n  \n<ol class=\"wp-block-list\">\n<li>The segment_id for each archive group can be found in the dbo.segments table.<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li>If values have been changed since archiving was configured, entries should be visible in the \u201cResults\u201d section.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 17\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164409\/sc-17-500.png\"><\/p><\/p>\n\n\n\n<p><p style=\"margin-left: 40px; margin-bottom:0px;\">2. Retrieve historical data.<\/p><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><span id=\"cke_bm_823C\" style=\"display: none;\">&nbsp;<\/span>The WinCC OA functions <strong>dpGetPeriod()<\/strong> and <strong>dpQuery()<\/strong> can be used to retrieve historical data.\n\n \n \n<ol class=\"wp-block-list\">\n<li>The two examples below demonstrate a test panel running each of the two aforementioned functions and printing the results to the Log Viewer.<\/li>\n\n\n\n<li>The returned data should reflect what is viewed in the Microsoft SQL Server Management Studio tables.<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li>Be sure to understand your server\u2019s backup and retention policy to determine what data and how much historical information can be accessed.<\/li>\n<\/ol>\n\n\n\n<p>NOTE: For help writing SQL queries, use the <strong>SQL Panel <\/strong>found in <strong>SysMgm\/Reports\/SQL-Query<\/strong><\/p>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 18\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164409\/sc-18-500.png\"><\/p><\/p>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 19\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164408\/sc-19-500.png\"><\/p><\/p>\n\n\n\n<p><p style=\"text-align: center;\"><img decoding=\"async\" alt=\"Screenshot 20\" src=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164408\/sc-20-500.png\"><\/p><\/p>\n\n\n<\/div>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-3-further-reading-references\"><u>3. Further Reading\/References<\/u><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.winccoa.com\/documentation\/WinCCOA\/3.18\/en_US\/NGA\/topics\/nga_mssql_server_install.html\" target=\"_blank\">MS SQL\u00ae Server Installation guide<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.winccoa.com\/documentation\/WinCCOA\/3.18\/en_US\/WCCOA_Voraussetzungen\/Voraussetzungen-03.html#Voraussetzungen-03__MSSQL\" target=\"_blank\">Software requirements<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/learn.microsoft.com\/en-us\/sql\/sql-server\/install\/configure-the-windows-firewall-to-allow-sql-server-access?view=sql-server-ver15#use-the-windows-firewall-with-advanced-security-snap-in\" target=\"_blank\">Configure the Windows Firewall to allow SQL Server access<\/a><\/li>\n<\/ul>\n\n\n\n<p><strong>Learn more about our <a href=\"https:\/\/www.dmcinfo.com\/services\/manufacturing-automation-and-intelligence\">Manufacturing Automation and Intelligence<\/a> expertise and <a href=\"https:\/\/www.dmcinfo.com\/contact#get-in-touch\">contact us<\/a> for your next project.&nbsp;<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This two-part blog series is intended to be a step-by-step overview on how to set up and utilize an MS SQL Server and WinCC OA\u2019s NextGen Archive (NGA). Information for a general setup exists via the WinCC OA Documentation (see Further Reading\/Links), but this walkthrough aims to be more detailed and explicit in the necessary [&hellip;]<\/p>\n","protected":false},"author":301,"featured_media":16848,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[756,731],"tags":[],"class_list":["post-16847","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hmi-and-scada","category-manufacturing-automation-intelligence"],"yoast_head":"<title>How to Configure NextGen Archiving in WinCC OA to use a Microsoft SQL Server | DMC, Inc.<\/title>\n<meta name=\"description\" content=\"DMC, Inc. shares a step-by-step overview on how to set up and utilize an MS SQL Server and WinCC OA\u2019s NextGen Archive (NGA).\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Configure NextGen Archiving in WinCC OA to use a Microsoft SQL Server\" \/>\n<meta property=\"og:description\" content=\"DMC, Inc. shares a step-by-step overview on how to set up and utilize an MS SQL Server and WinCC OA\u2019s NextGen Archive (NGA).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/\" \/>\n<meta property=\"og:site_name\" content=\"DMC, Inc.\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/DMC-Inc\/107982009242929\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-05T10:47:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-23T14:46:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164408\/1_2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"925\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Nick Leisle\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nick Leisle\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/\"},\"author\":{\"name\":\"Nick Leisle\",\"@id\":\"https:\/\/www.dmcinfo.com\/#\/schema\/person\/5a764f388fb6e2e603e0c362e76aa682\"},\"headline\":\"How to Configure NextGen Archiving in WinCC OA to use a Microsoft SQL Server\",\"datePublished\":\"2024-01-05T10:47:21+00:00\",\"dateModified\":\"2025-12-23T14:46:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/\"},\"wordCount\":943,\"publisher\":{\"@id\":\"https:\/\/www.dmcinfo.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164408\/1_2.png\",\"articleSection\":[\"HMI and SCADA\",\"Manufacturing Automation &amp; Intelligence\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/\",\"url\":\"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/\",\"name\":\"How to Configure NextGen Archiving in WinCC OA to use a Microsoft SQL Server | DMC, Inc.\",\"isPartOf\":{\"@id\":\"https:\/\/www.dmcinfo.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164408\/1_2.png\",\"datePublished\":\"2024-01-05T10:47:21+00:00\",\"dateModified\":\"2025-12-23T14:46:50+00:00\",\"description\":\"DMC, Inc. shares a step-by-step overview on how to set up and utilize an MS SQL Server and WinCC OA\u2019s NextGen Archive (NGA).\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/#primaryimage\",\"url\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164408\/1_2.png\",\"contentUrl\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164408\/1_2.png\",\"width\":925,\"height\":400,\"caption\":\"2\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dmcinfo.com\/#website\",\"url\":\"https:\/\/www.dmcinfo.com\/\",\"name\":\"DMC, Inc.\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.dmcinfo.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dmcinfo.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.dmcinfo.com\/#organization\",\"name\":\"DMC, Inc.\",\"url\":\"https:\/\/www.dmcinfo.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dmcinfo.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27171146\/dmc-logo-1.png\",\"contentUrl\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27171146\/dmc-logo-1.png\",\"width\":418,\"height\":167,\"caption\":\"DMC, Inc.\"},\"image\":{\"@id\":\"https:\/\/www.dmcinfo.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/DMC-Inc\/107982009242929\",\"https:\/\/www.instagram.com\/dmcengineering\",\"https:\/\/www.youtube.com\/DMCEngineering\",\"https:\/\/www.linkedin.com\/company\/dmc-engineering\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dmcinfo.com\/#\/schema\/person\/5a764f388fb6e2e603e0c362e76aa682\",\"name\":\"Nick Leisle\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dmcinfo.com\/#\/schema\/person\/image\/\",\"url\":\"\/\/www.dmcinfo.com\/wp-content\/uploads\/wpo365\/profile-images\/301.png\",\"contentUrl\":\"\/\/www.dmcinfo.com\/wp-content\/uploads\/wpo365\/profile-images\/301.png\",\"caption\":\"Nick Leisle\"},\"url\":\"https:\/\/www.dmcinfo.com\/blog\/author\/nicholasl\/\"}]}<\/script>","yoast_head_json":{"title":"How to Configure NextGen Archiving in WinCC OA to use a Microsoft SQL Server | DMC, Inc.","description":"DMC, Inc. shares a step-by-step overview on how to set up and utilize an MS SQL Server and WinCC OA\u2019s NextGen Archive (NGA).","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/","og_locale":"en_US","og_type":"article","og_title":"How to Configure NextGen Archiving in WinCC OA to use a Microsoft SQL Server","og_description":"DMC, Inc. shares a step-by-step overview on how to set up and utilize an MS SQL Server and WinCC OA\u2019s NextGen Archive (NGA).","og_url":"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/","og_site_name":"DMC, Inc.","article_publisher":"https:\/\/www.facebook.com\/pages\/DMC-Inc\/107982009242929","article_published_time":"2024-01-05T10:47:21+00:00","article_modified_time":"2025-12-23T14:46:50+00:00","og_image":[{"width":925,"height":400,"url":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164408\/1_2.png","type":"image\/png"}],"author":"Nick Leisle","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Nick Leisle","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/#article","isPartOf":{"@id":"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/"},"author":{"name":"Nick Leisle","@id":"https:\/\/www.dmcinfo.com\/#\/schema\/person\/5a764f388fb6e2e603e0c362e76aa682"},"headline":"How to Configure NextGen Archiving in WinCC OA to use a Microsoft SQL Server","datePublished":"2024-01-05T10:47:21+00:00","dateModified":"2025-12-23T14:46:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/"},"wordCount":943,"publisher":{"@id":"https:\/\/www.dmcinfo.com\/#organization"},"image":{"@id":"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164408\/1_2.png","articleSection":["HMI and SCADA","Manufacturing Automation &amp; Intelligence"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/","url":"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/","name":"How to Configure NextGen Archiving in WinCC OA to use a Microsoft SQL Server | DMC, Inc.","isPartOf":{"@id":"https:\/\/www.dmcinfo.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/#primaryimage"},"image":{"@id":"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164408\/1_2.png","datePublished":"2024-01-05T10:47:21+00:00","dateModified":"2025-12-23T14:46:50+00:00","description":"DMC, Inc. shares a step-by-step overview on how to set up and utilize an MS SQL Server and WinCC OA\u2019s NextGen Archive (NGA).","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dmcinfo.com\/blog\/16847\/how-to-configure-nextgen-archiving-in-wincc-oa-to-use-a-microsoft-sql-server\/#primaryimage","url":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164408\/1_2.png","contentUrl":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27164408\/1_2.png","width":925,"height":400,"caption":"2"},{"@type":"WebSite","@id":"https:\/\/www.dmcinfo.com\/#website","url":"https:\/\/www.dmcinfo.com\/","name":"DMC, Inc.","description":"","publisher":{"@id":"https:\/\/www.dmcinfo.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dmcinfo.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dmcinfo.com\/#organization","name":"DMC, Inc.","url":"https:\/\/www.dmcinfo.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dmcinfo.com\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27171146\/dmc-logo-1.png","contentUrl":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27171146\/dmc-logo-1.png","width":418,"height":167,"caption":"DMC, Inc."},"image":{"@id":"https:\/\/www.dmcinfo.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/DMC-Inc\/107982009242929","https:\/\/www.instagram.com\/dmcengineering","https:\/\/www.youtube.com\/DMCEngineering","https:\/\/www.linkedin.com\/company\/dmc-engineering"]},{"@type":"Person","@id":"https:\/\/www.dmcinfo.com\/#\/schema\/person\/5a764f388fb6e2e603e0c362e76aa682","name":"Nick Leisle","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dmcinfo.com\/#\/schema\/person\/image\/","url":"\/\/www.dmcinfo.com\/wp-content\/uploads\/wpo365\/profile-images\/301.png","contentUrl":"\/\/www.dmcinfo.com\/wp-content\/uploads\/wpo365\/profile-images\/301.png","caption":"Nick Leisle"},"url":"https:\/\/www.dmcinfo.com\/blog\/author\/nicholasl\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/posts\/16847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/users\/301"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/comments?post=16847"}],"version-history":[{"count":4,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/posts\/16847\/revisions"}],"predecessor-version":[{"id":36660,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/posts\/16847\/revisions\/36660"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/media\/16848"}],"wp:attachment":[{"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/media?parent=16847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/categories?post=16847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/tags?post=16847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}