Backup SQL Server Database as Script
Use the Scripted Backup for a SQL Server Database
Contents
To create a scripted backup of a database on SQL Server do the following:
- Right click on the database name >
Tasks
>Generate Scripts...
- On the
Choose Objects
screen selectScriot entire database and all database objects
- On the
Set Scripting Options
screen click onAdvanced
and select:Script DROP and CREATE = Script CREATE
Types of data to script = Schema and data
- Set the location to save the script
- On the
Summary
page you can clickNext
which will start the generation - Thereafter you can view the generated database script from the location it was generated to