Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to take sql database backup without data [duplicate]

Tags:

Possible Duplicate:
Backup SQL Schema Only?

Anybody tell how to take sql database backup without data. i wanted to take all the tables and structures from sql server 2008. and import to another sql server 2008. i dont need the data.

like image 812
Joseph Avatar asked Mar 10 '10 15:03

Joseph


People also ask

Can we take copy-only differential backup?

Copy-only backups serve this purpose. A copy-only backup cannot serve as a differential base or differential backup and does not affect the differential base. Restoring a copy-only full backup is the same as restoring any other full backup.


1 Answers

Use "tasks" -> "Generate scripts" and choose what you want to script. Run, save to a file, open the file against the new database and run the script after changing the database name to match (if it changed)

like image 198
Otávio Décio Avatar answered Jan 28 '23 15:01

Otávio Décio