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.
Nesta página do site você pode assistir ao vídeo on-line Export database as sql script with SQL Server Management Studio duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Hoang Duc Nguyen 01 Janeiro 1970, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 602 vezes e gostou 7 espectadores. Boa visualização!