Use SqlServer
No edit summary |
(Updated Edited template to July 12, 2025.) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
To switch your | <message>Write the content here to display this box</message> | ||
# Login to you MDrivenServer (yoursite/__MDrivenServer - | To switch your Turnkey site from using the default SQLCompact to using the SQLServer in Azure instead, do this: | ||
# Login to you MDrivenServer (yoursite/__MDrivenServer - credentials in portal.MDriven.net) | |||
# Go to AdminArea / Model Version Administration | # Go to AdminArea / Model Version Administration | ||
# Select A0 | # Select A0 | ||
# Pause your App with Pause button | # Pause your App with the Pause button | ||
# Change ConnectionType to SqlServer | # Change ConnectionType to SqlServer | ||
# Paste in ConnectionString that includes user and | # Paste in ConnectionString that includes the user and password | ||
# Start your app | # Start your app | ||
[[File:2017-02-25 13h18 19.png|none|thumb]] | [[File:2017-02-25 13h18 19.png|none|thumb|678x678px]] | ||
This will make your app look in the | This will make your app look in the SqlServer instead of the default CompactDB. But your SQLServer is still empty! '''MDriven must create the schema.''' | ||
To signal MDriven to drop everything and re-create the schema, do this: | |||
To signal MDriven to drop everything and re create the schema | |||
# Make sure you have the model locally in MDrivenDesigner | # Make sure you have the model locally in MDrivenDesigner | ||
# Delete ALL VERSIONS of the model in MDriven Server | # Delete ALL VERSIONS of the model in MDriven Server so that the list is empty and contains NO MODELS | ||
# Upload the model from MDrivenDesigner | # Upload the model from MDrivenDesigner | ||
# MDriven Server will now find that there is no old model to evolve and | # MDriven Server will now find that there is no old model to evolve and will recreate the database as a result | ||
[[Category:MDriven Server]] | [[Category:MDriven Server]] | ||
[[Category:SQL]] | [[Category:SQL]] | ||
{{Edited|July|12|2025}} |
Latest revision as of 06:24, 20 January 2025
This page was created by Hans.karlsen@mdriven.net on 2017-02-25. Last edited by Edgar on 2025-01-20.
To switch your Turnkey site from using the default SQLCompact to using the SQLServer in Azure instead, do this:
- Login to you MDrivenServer (yoursite/__MDrivenServer - credentials in portal.MDriven.net)
- Go to AdminArea / Model Version Administration
- Select A0
- Pause your App with the Pause button
- Change ConnectionType to SqlServer
- Paste in ConnectionString that includes the user and password
- Start your app
This will make your app look in the SqlServer instead of the default CompactDB. But your SQLServer is still empty! MDriven must create the schema.
To signal MDriven to drop everything and re-create the schema, do this:
- Make sure you have the model locally in MDrivenDesigner
- Delete ALL VERSIONS of the model in MDriven Server so that the list is empty and contains NO MODELS
- Upload the model from MDrivenDesigner
- MDriven Server will now find that there is no old model to evolve and will recreate the database as a result