Exporting data to a script¶
Use the Data Transfer Wizard to write the selected database's objects and data to an SQL script โ useful for backups, migrations, or keeping a schema under version control.
To export to an SQL script:
- Choose Import/Export โ Data Transfer Wizard from the main menu.
- On the Action page, select Export data from the selected database.
- On the Destination page, select SQL Script, choose the destination file name, and click Next.
-
Choose the file encoding, then click Next.

-
Choose additional options, then click Next. One of them, Continue on error, decides what a failure does to the rest of the run โ see When a transfer hits an error.

-
Select the types of objects to export, then click Next.

-
Select the individual objects to export, then click Next.

-
Review your choices and click Next to start, or Back to adjust. You can Cancel during the transfer.
- Click Finish to close the wizard.
See also: Importing data from a script ยท Exporting data to SQL