[en] You migrated your labeling solution to Loftware Cloud, and you would also like to back up your existing SQL database to the SQL Azure database on . SQL Azure database has some limitations regarding user rights, so the standard SQL backup procedure won't work.
[en] Generate scripts to create a backup of your local SQL database. Then, execute the scripts in the Azure SQL Database to restore your local database.
[en] To backup your database:
-
[en] Open SQL Server Management Studio (SSMS) and connect to your SQL Server instance.
-
[en] Expand the Databases node in Object Explorer.
-
[en] Right-click your database, hover over Tasks, and click Generate Scripts....
-
[en] The Generate Scripts window opens. Click Choose Objects, then select the database objects you want to backup.
-
[en] Click Next. The Set Scripting Options window opens. Click Advanced.
-
[en] The Advanced Scripting options window opens. Click Types of data to script, then select Schema and data in a drop-down menu.
[en] Click OK.
-
[en] In the Set Scripting Options window, select Save as script file, define file path, then click Next.
Nota
[en] If you back up a big database, select the One script file per object option. SSMS will generate a separate export file for each table in your database.
-
[en] The Summary window opens. Verify your settings, then click Next.
-
[en] In the Save Scripts window, verify that all actions were successfully executed, then click Finish.
[en] Your backup scripts are now generated and saved as .sql
files.
[en] To restore your backup scripts in the Azure SQL database:
-
[en] Open SQL Server Management Studio (SSMS) and connect to your Azure SQL database.
-
[en] Click File > Open > File... and navigate to your backup
.sql
files on your local disc. -
[en] Select your backup
.sql
file, then click Execute. -
[en] If you created backup files for each table, repeat steps 2-3.
[en] Your local SQL database is now restored on Azure SQL database.