[sqlserver exports and imports complete data and data table structure of the database]
Export database structure and data
Right-click on the database -> Tasks -> Generate script
Next step
You can choose to export the entire database or export individual data tables
Select the save method path, usually just go to a .sql file.
The essential
Click on the advanced options on the previous page
Select the schema and data so they can be exported together
Next, the export is completed in the next step.
import
Create a database with the same name and path in the database to be imported
or modify the path yourself.
Just open the generated sql file and execute it.