Use SqlServer
No edit summary
(Replacing message template with parser tag)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<message>Write the content here to display this box</message>
To switch your Turnkey site from using the default SQLCompact to using the SQLServer in Azure instead, do this:
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)
# Login to you MDrivenServer (yoursite/__MDrivenServer  - credentials in portal.MDriven.net)
Line 7: Line 8:
# Paste in ConnectionString that includes the user and password
# 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 SQLServer instead of the default CompactDB.
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.'''
 
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, do this:
Line 19: Line 18:
[[Category:MDriven Server]]
[[Category:MDriven Server]]
[[Category:SQL]]
[[Category:SQL]]
{{Edited|July|12|2024}}

Latest revision as of 07:59, 17 June 2024

To switch your Turnkey site from using the default SQLCompact to using the SQLServer in Azure instead, do this:

  1. Login to you MDrivenServer (yoursite/__MDrivenServer - credentials in portal.MDriven.net)
  2. Go to AdminArea / Model Version Administration
  3. Select A0
  4. Pause your App with the Pause button
  5. Change ConnectionType to SqlServer
  6. Paste in ConnectionString that includes the user and password
  7. Start your app
2017-02-25 13h18 19.png

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:

  1. Make sure you have the model locally in MDrivenDesigner
  2. Delete ALL VERSIONS of the model in MDriven Server so that the list is empty and contains NO MODELS
  3. Upload the model from MDrivenDesigner
  4. MDriven Server will now find that there is no old model to evolve and will recreate the database as a result
This page was edited 12 days ago on 06/17/2024. What links here