We have built an desktop(windows) application that needs SQL Server to store the data. Now if we do any changes on database side, we need to backup the database of user’s application, amend our changes and restore it back to user’s application.
We have written code to backup & restore the .bak file in the application that works fine.
But now we need to build an online utility where user could upload the data file, then our changes could ammend and then they could download the update data to restore.
Please suggest me some ideas to implement this feature.
P.S.: I have posted the question in the zone where i felt it was correct. Please change to appropriate zone (if required)
thanks!
Write migrations with Migrator.NET to update your schema and deploy schema changes as a runnable update to your clients.
Here is an example from the Getting Started documentation:
There are nice wrappers for adding/removing columns, but you can execute any arbitrary SQL.