

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF[
	<!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
	<!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
	<!ENTITY owl 'http://www.w3.org/2002/07/owl#'>
	<!ENTITY swivt 'http://semantic-mediawiki.org/swivt/1.0#'>
	<!ENTITY wiki 'http://https://stuga.dokit.app/wiki/Special:URIResolver/'>
	<!ENTITY category 'http://https://stuga.dokit.app/wiki/Special:URIResolver/Category-3A'>
	<!ENTITY property 'http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3A'>
	<!ENTITY wikiurl 'https://stuga.dokit.app/wiki/'>
]>

<rdf:RDF
	xmlns:rdf="&rdf;"
	xmlns:rdfs="&rdfs;"
	xmlns:owl ="&owl;"
	xmlns:swivt="&swivt;"
	xmlns:wiki="&wiki;"
	xmlns:category="&category;"
	xmlns:property="&property;">

	<owl:Ontology rdf:about="https://stuga.dokit.app/wiki/Special:ExportRDF/StuertzCloud_-2D_Creating_Local_SQL_Database">
		<swivt:creationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2026-04-28T00:35:47+02:00</swivt:creationDate>
		<owl:imports rdf:resource="http://semantic-mediawiki.org/swivt/1.0"/>
	</owl:Ontology>
	<swivt:Subject rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/StuertzCloud_-2D_Creating_Local_SQL_Database">
		<rdf:type rdf:resource="http://https://stuga.dokit.app/wiki/Special:URIResolver/Category-3ATutorials"/>
		<rdf:type rdf:resource="http://https://stuga.dokit.app/wiki/Special:URIResolver/Category-3ASoftware"/>
		<rdf:type rdf:resource="http://https://stuga.dokit.app/wiki/Special:URIResolver/Category-3APages_avec_des_erreurs_de_coloration_syntaxique"/>
		<rdfs:label>StuertzCloud - Creating Local SQL Database</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://stuga.dokit.app/wiki/Special:ExportRDF/StuertzCloud_-2D_Creating_Local_SQL_Database"/>
		<swivt:page rdf:resource="https://stuga.dokit.app/wiki/StuertzCloud_-2D_Creating_Local_SQL_Database"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</swivt:wikiNamespace>
		<swivt:wikiPageContentLanguage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">en</swivt:wikiPageContentLanguage>
		<property:Complete rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Draft</property:Complete>
		<property:Description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">How to create a SQL Database instance on the local network to enable factory machines to communicate with StuertzCloud</property:Description>
		<property:Difficulty rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Hard</property:Difficulty>
		<property:Duration rdf:datatype="http://www.w3.org/2001/XMLSchema#double">30</property:Duration>
		<property:Duration-2Dtype rdf:datatype="http://www.w3.org/2001/XMLSchema#string">minute(s)</property:Duration-2Dtype>
		<property:Introduction rdf:datatype="http://www.w3.org/2001/XMLSchema#string">See [[StuertzCloud - Setup Overview]] for an overview of the setup.


This tutorial covers the setup of the Local SQL Express database instance and creating a "ProOpt" database structure on it.

&lt;br/&gt;

*This database installed on the 'Location' local network.
*The 'Machines' write their production data to it
*The 'Gateway' software uploads this data to the StuertzCloud server


See Also

[https://stuga.dokit.app/wiki/StuertzCloud_-_Installing_Gateway StuertzCloud - Installing Gateway]

[https://stuga.dokit.app/wiki/StuertzCloud_-_Setting_up_Stuga_Machine_to_Write_Production_Data StuertzCloud - Setting up Stuga Machine to Write Production Data]

[https://stuga.dokit.app/wiki/StuertzCloud_-_Creating_a_Customer_Location StuertzCloud - Creating a Customer Location]

&lt;br/&gt;&lt;div class="icon-instructions info-icon"&gt;
&lt;div class="icon-instructions-icon"&gt;&lt;i class="fa fa-info-circle"&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class="icon-instructions-text"&gt;...You must have SQL Server Management Studio (SSMS) installed to manage the databases&lt;/div&gt;
&lt;/div&gt;

&lt;br/&gt;</property:Introduction>
		<property:IsTranslation rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</property:IsTranslation>
		<property:Language rdf:datatype="http://www.w3.org/2001/XMLSchema#string">en</property:Language>
		<property:SourceLanguage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">none</property:SourceLanguage>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">This is stored on the [https://stugaltd.monday.com/boards/4881973586 Software versions] Monday Board</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">👉 [https://www.microsoft.com/en-us/download/details.aspx?id=104781 Download SQL Server Express 2022]

*'''Run the Installer''': Locate the downloaded file named

&lt;code data-start="33" data-end="56"&gt;SQL2022-SSEI-Expr.exe&lt;/code&gt; 

*and double-click it to launch the installer.
*'''Choose Installation Type''': In the installer window, select the '''Basic''' installation option. This will install SQL Server Express with default settings.
*'''Accept License Terms''': Read and accept the license terms to proceed with the installation.
*'''Installation Progress''': The installer will download and install the necessary components. This process may take several minutes.
*'''Installation Complete''': Once the installation is complete, you'll see a confirmation screen. You can note the instance name (usually &lt;code data-start="109" data-end="121"&gt;SQLEXPRESS&lt;/code&gt;) for future reference.
*SA password

&lt;br/&gt;</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">After installation, you can verify that SQL Server Express is running by:

*Opening '''SQL Server Management Studio (SSMS)'''.
*Connecting to the server using the instance name 

(e.g., &lt;code data-start="56" data-end="70"&gt;.\SQLEXPRESS&lt;/code&gt;)

&lt;br/&gt;

*Ensuring that the connection is successful and that you can see the server objects.</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">&lt;nowiki&gt;Launch SSMS and connect to your local server. If you used default settings, the server name will be:&lt;br /&gt;&lt;br/&gt;&lt;div class="mw-highlight mw-content-ltr" dir="ltr"&gt;&lt;pre&gt;.\SQLEXPRESS&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Use “Windows Authentication”&lt;br /&gt;&lt;br /&gt;Tick trust Server certificate&lt;br/&gt;&lt;div class="icon-instructions info-icon"&gt;&lt;br /&gt;&lt;div class="icon-instructions-icon"&gt;&lt;i class="fa fa-info-circle"&gt;&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="icon-instructions-text"&gt;...We will set up SQL Authentication later&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br/&gt;&lt;/nowiki&gt;</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">* In '''Object Explorer''', right-click your server and select '''Properties'''.
* Go to the '''Security''' page.
* Under ''Server authentication'', select:  '''SQL Server and Windows Authentication mode'''
* Click '''OK'''.</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string"># In SSMS, open '''Object Explorer'''.
# Right-click the server name at the top 
# Click '''Restart''' and confirm.


Alternatively, you can use '''SQL Server Configuration Manager''' if SSMS doesn’t show the restart option:

* Open 

&lt;code data-start="340" data-end="374"&gt;SQL Server Configuration Manager&lt;/code&gt;

&lt;br/&gt;

* Expand '''SQL Server Services'''
* Right-click '''SQL Server (SQLEXPRESS)''' and choose '''Restart'''</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">* In SSMS, expand:

&lt;code data-start="592" data-end="611"&gt;Security &gt; Logins&lt;/code&gt;

* Right-click on sa and choose '''Properties'''
* In the '''General''' page:
** Set a strong password (and confirm it)
* Switch to the '''Status''' page:
** Set '''Login''' to: '''Enabled'''
* Click '''OK''' to save changes</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">confirm that SQL Authentication works:

# Disconnect your current session in SSMS.
# Click '''Connect''' again.
# Set:
#* '''Server name''': &lt;code data-start="234" data-end="248"&gt;.\SQLEXPRESS&lt;/code&gt;
#* '''Authentication''': '''SQL Server Authentication'''
#* '''Login''': &lt;code data-start="320" data-end="324"&gt;sa&lt;/code&gt;
#* '''Password''': (use the one you just set)</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string"># Right click on Databases-&gt;New Database
# Call it ProOpt</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">*Go to '''File &gt; Open &gt; File…'''
*Browse to and open the script file:

&lt;code data-start="533" data-end="590"&gt;ProOpt-StuertzCloud-Reference-Database-20240131 (4).sql&lt;/code&gt;</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string"># Select the ProOpt database in the drop down query menu
# Execute the script
# Check the proOpt tables have been created</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Uncheck Enforce Password Policy

Password in text file

Set permissions all bar denydatareader and denydatawriter

User Mapping-&gt;Map to ProOpt

should then appear in ProOpt-&gt;Security-&gt;Users folder

&lt;br/&gt;</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">* Use an online GUID generator https://guidgenerator.com/
* Copy the GUID</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">* Right click -&gt; Edit top200 rows
* Paste GUID in ID field</property:Step_Content>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Download and Install SQL Server Express 2022</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Verify Installation</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Download the ProOpt sql schema</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Open SQL Server Management Studio (SSMS)</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Open the SQL Script</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Enable SQL Server Authentication Mode</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Restart SQL Service</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Enable the "sa" Login and Set a Password</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Test the sa Login</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Create a ProOpt Database</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Run the script in the ProOpt database</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Create a SQL Server login for StuertzCloud</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Set configuration compatibility with StuertzCloud gateway</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Get a new GUID</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Add GUID to StuertzCloud_Metadata</property:Step_Title>
		<property:Has_query rdf:resource="&wiki;StuertzCloud_-2D_Creating_Local_SQL_Database-23_QUERYee7a61aae48f1c3f91d8e4d7736360be"/>
		<swivt:wikiPageModificationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2025-04-24T16:01:43Z</swivt:wikiPageModificationDate>
		<property:Modification_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2460790.1678588</property:Modification_date-23aux>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">StuertzCloud - Creating Local SQL Database</swivt:wikiPageSortKey>
		<property:Comments rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:Comments>
		<property:Page_creator rdf:resource="&wiki;Utilisateur-3AGareth_Green"/>
		<property:Approved rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</property:Approved>
		<property:IsReview rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</property:IsReview>
		<property:I_did_it rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:I_did_it>
		<property:Favorites rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:Favorites>
	</swivt:Subject>
	<swivt:Subject rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/StuertzCloud_-2D_Creating_Local_SQL_Database-23_QUERYee7a61aae48f1c3f91d8e4d7736360be">
		<swivt:masterPage rdf:resource="&wiki;StuertzCloud_-2D_Creating_Local_SQL_Database"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</swivt:wikiNamespace>
		<property:Query_depth rdf:datatype="http://www.w3.org/2001/XMLSchema#double">1</property:Query_depth>
		<property:Query_format rdf:datatype="http://www.w3.org/2001/XMLSchema#string">plainlist</property:Query_format>
		<property:Query_size rdf:datatype="http://www.w3.org/2001/XMLSchema#double">3</property:Query_size>
		<property:Query_string rdf:datatype="http://www.w3.org/2001/XMLSchema#string">[[:Dokit:DocOptions]] [[DokitEPIEnable::yes]]</property:Query_string>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">StuertzCloud - Creating Local SQL Database# QUERYee7a61aae48f1c3f91d8e4d7736360be</swivt:wikiPageSortKey>
	</swivt:Subject>
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#creationDate" />
	<owl:Class rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Category-3ATutorials" />
	<owl:Class rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Category-3ASoftware" />
	<owl:Class rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Category-3APages_avec_des_erreurs_de_coloration_syntaxique" />
	<owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#page" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiNamespace" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageContentLanguage" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3AComplete" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3ADescription" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3ADifficulty" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3ADuration" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3ADuration-2Dtype" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3AIntroduction" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3AIsTranslation" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3ALanguage" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3ASourceLanguage" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3AStep_Content" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3AStep_Title" />
	<owl:ObjectProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3AHas_query" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageModificationDate" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3AModification_date-23aux" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageSortKey" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3AComments" />
	<owl:ObjectProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3APage_creator" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3AApproved" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3AIsReview" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3AI_did_it" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3AFavorites" />
	<owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#masterPage" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3AQuery_depth" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3AQuery_format" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3AQuery_size" />
	<owl:DatatypeProperty rdf:about="http://https://stuga.dokit.app/wiki/Special:URIResolver/Property-3AQuery_string" />
	<!-- Created by Semantic MediaWiki, https://www.semantic-mediawiki.org/ -->
</rdf:RDF>