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.
En esta página del sitio puede ver el video en línea Export database as sql script with SQL Server Management Studio de Duración hora minuto segunda en buena calidad , que subió el usuario Hoang Duc Nguyen 01 enero 1970, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 602 veces y le gustó 7 a los espectadores. Disfruta viendo!