| [version en cours de rédaction] | [version en cours de rédaction] |
| (4 révisions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 26 : | Ligne 26 : | ||
[https://stuga.dokit.app/wiki/StuertzCloud_-_Creating_a_Customer_Location StuertzCloud - Creating a Customer Location] | [https://stuga.dokit.app/wiki/StuertzCloud_-_Creating_a_Customer_Location StuertzCloud - Creating a Customer Location] | ||
| + | |||
| + | <br />{{Info|...You must have SQL Server Management Studio (SSMS) installed to manage the databases}} | ||
<br /></translate> | <br /></translate> | ||
| Ligne 32 : | Ligne 34 : | ||
{{EPI}} | {{EPI}} | ||
{{Tuto Step | {{Tuto Step | ||
| − | |Step_Title=<translate></translate> | + | |Step_Title=<translate>Download and Install SQL Server Express 2022</translate> |
| + | |Step_Content=<translate>👉 [https://www.microsoft.com/en-us/download/details.aspx?id=104781 Download SQL Server Express 2022] | ||
| + | |||
| + | *'''Run the Installer''': Locate the downloaded file named | ||
| + | |||
| + | <code data-start="33" data-end="56">SQL2022-SSEI-Expr.exe</code> | ||
| + | |||
| + | *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 <code data-start="109" data-end="121">SQLEXPRESS</code>) for future reference. | ||
| + | *SA password | ||
| + | |||
| + | <br /></translate> | ||
| + | }} | ||
| + | {{Tuto Step | ||
| + | |Step_Title=<translate>Verify Installation</translate> | ||
| + | |Step_Content=<translate>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., <code data-start="56" data-end="70">.\SQLEXPRESS</code>) | ||
| + | |||
| + | <br /> | ||
| + | |||
| + | *Ensuring that the connection is successful and that you can see the server objects.</translate> | ||
| + | }} | ||
| + | {{Tuto Step | ||
| + | |Step_Title=<translate>Download the ProOpt sql schema</translate> | ||
| + | |Step_Content=<translate>This is stored on the [https://stugaltd.monday.com/boards/4881973586 Software versions] Monday Board</translate> | ||
| + | }} | ||
| + | {{Tuto Step | ||
| + | |Step_Title=<translate>Open SQL Server Management Studio (SSMS)</translate> | ||
| + | |Step_Content=<translate>Launch SSMS and connect to your local server. If you used default settings, the server name will be: | ||
| + | <br /><syntaxhighlight> | ||
| + | .\SQLEXPRESS | ||
| + | |||
| + | </syntaxhighlight> | ||
| + | |||
| + | |||
| + | Use “Windows Authentication” | ||
| + | |||
| + | Tick trust Server certificate<br />{{Info|...We will set up SQL Authentication later}} | ||
| + | |||
| + | |||
| + | <br /></translate> | ||
| + | }} | ||
| + | {{Tuto Step | ||
| + | |Step_Title=<translate>Enable SQL Server Authentication Mode</translate> | ||
| + | |Step_Content=<translate>* 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'''.</translate> | ||
| + | }} | ||
| + | {{Tuto Step | ||
| + | |Step_Title=<translate>Restart SQL Service</translate> | ||
| + | |Step_Content=<translate># 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 | ||
| + | |||
| + | <code data-start="340" data-end="374">SQL Server Configuration Manager</code> | ||
| + | |||
| + | <br /> | ||
| + | |||
| + | * Expand '''SQL Server Services''' | ||
| + | * Right-click '''SQL Server (SQLEXPRESS)''' and choose '''Restart'''</translate> | ||
| + | }} | ||
| + | {{Tuto Step | ||
| + | |Step_Title=<translate>Enable the "sa" Login and Set a Password</translate> | ||
| + | |Step_Content=<translate>* In SSMS, expand: | ||
| + | |||
| + | <code data-start="592" data-end="611">Security > Logins</code> | ||
| + | |||
| + | * 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</translate> | ||
| + | }} | ||
| + | {{Tuto Step | ||
| + | |Step_Title=<translate>Test the sa Login</translate> | ||
| + | |Step_Content=<translate>confirm that SQL Authentication works: | ||
| + | |||
| + | # Disconnect your current session in SSMS. | ||
| + | # Click '''Connect''' again. | ||
| + | # Set: | ||
| + | #* '''Server name''': <code data-start="234" data-end="248">.\SQLEXPRESS</code> | ||
| + | #* '''Authentication''': '''SQL Server Authentication''' | ||
| + | #* '''Login''': <code data-start="320" data-end="324">sa</code> | ||
| + | #* '''Password''': (use the one you just set)</translate> | ||
| + | }} | ||
| + | {{Tuto Step | ||
| + | |Step_Title=<translate>Create a ProOpt Database</translate> | ||
| + | |Step_Content=<translate># Right click on Databases->New Database | ||
| + | # Call it ProOpt</translate> | ||
| + | }} | ||
| + | {{Tuto Step | ||
| + | |Step_Title=<translate>Open the SQL Script</translate> | ||
| + | |Step_Content=<translate>*Go to '''File > Open > File…''' | ||
| + | *Browse to and open the script file: | ||
| + | |||
| + | <code data-start="533" data-end="590">ProOpt-StuertzCloud-Reference-Database-20240131 (4).sql</code></translate> | ||
| + | }} | ||
| + | {{Tuto Step | ||
| + | |Step_Title=<translate>Run the script in the ProOpt database</translate> | ||
| + | |Step_Content=<translate># Select the ProOpt database in the drop down query menu | ||
| + | # Execute the script | ||
| + | # Check the proOpt tables have been created</translate> | ||
| + | }} | ||
| + | {{Tuto Step | ||
| + | |Step_Title=<translate>Create a SQL Server login for StuertzCloud</translate> | ||
| + | |Step_Content=<translate>Uncheck Enforce Password Policy | ||
| + | |||
| + | Password in text file | ||
| + | |||
| + | Set permissions all bar denydatareader and denydatawriter | ||
| + | |||
| + | User Mapping->Map to ProOpt | ||
| + | |||
| + | should then appear in ProOpt->Security->Users folder | ||
| + | |||
| + | <br /></translate> | ||
| + | }} | ||
| + | {{Tuto Step | ||
| + | |Step_Title=<translate>Set configuration compatibility with StuertzCloud gateway</translate> | ||
|Step_Content=<translate></translate> | |Step_Content=<translate></translate> | ||
| + | }} | ||
| + | {{Tuto Step | ||
| + | |Step_Title=<translate>Get a new GUID</translate> | ||
| + | |Step_Content=<translate>* Use an online GUID generator https://guidgenerator.com/ | ||
| + | * Copy the GUID</translate> | ||
| + | }} | ||
| + | {{Tuto Step | ||
| + | |Step_Title=<translate>Add GUID to StuertzCloud_Metadata</translate> | ||
| + | |Step_Content=<translate>* Right click -> Edit top200 rows | ||
| + | * Paste GUID in ID field</translate> | ||
}} | }} | ||
{{Notes}} | {{Notes}} | ||
How to create a SQL Database instance on the local network to enable factory machines to communicate with StuertzCloud
Auteur
Gareth Green | Dernière modification 24/04/2025 par Gareth Green en cours de rédaction ⧼frevu-button-review-label⧽
Pas encore d'image
How to create a SQL Database instance on the local network to enable factory machines to communicate with StuertzCloud
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.
See Also
StuertzCloud - Installing Gateway
StuertzCloud - Setting up Stuga Machine to Write Production Data
StuertzCloud - Creating a Customer Location
👉 Download SQL Server Express 2022
SQL2022-SSEI-Expr.exe
SQLEXPRESS) for future reference.
After installation, you can verify that SQL Server Express is running by:
(e.g., .\SQLEXPRESS)
This is stored on the Software versions Monday Board
Launch SSMS and connect to your local server. If you used default settings, the server name will be:
.\SQLEXPRESS
Use “Windows Authentication”
Alternatively, you can use SQL Server Configuration Manager if SSMS doesn’t show the restart option:
SQL Server Configuration Manager
Security > Logins
confirm that SQL Authentication works:
.\SQLEXPRESSsaProOpt-StuertzCloud-Reference-Database-20240131 (4).sql
Uncheck Enforce Password Policy
Password in text file
Set permissions all bar denydatareader and denydatawriter
User Mapping->Map to ProOpt
should then appear in ProOpt->Security->Users folder
en none 0 Draft
Vous avez entré un nom de page invalide, avec un ou plusieurs caractères suivants :
< > @ ~ : * € £ ` + = / \ | [ ] { } ; ? #