Export database as sql script with SQL Server Management Studio

Veröffentlicht am: 01 Januar 1970
auf dem Kanal: Hoang Duc Nguyen
602
7

This uses SQL Server Management Studio 19

Let's try to export a database to SQL script including both schema and data in a single file.
First open SSMS
Connect to the database
Locate database we want to export. In this example, I want to export the bikestore database.
Select the 'bikestore' database and then right click to choose tasks & generate scripts
Choose Next
Choose 'SCript entire database and all database objects'
Choose 'Advanced' and make sure that we export both schema and data
Choose 'Save as script file' to save the exported data as sql script file
Next
Next
Finish, we could optionally select 'Open' to open the script file generated directly

As you could see, a script file with both schema and data is generated, which could be used to restore to other local database.


Auf dieser Seite können Sie das Online-Video Export database as sql script with SQL Server Management Studio mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Hoang Duc Nguyen 01 Januar 1970 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 602 Mal angesehen und es wurde von 7 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!