1,右键点击要导出的数据库
2,点击Tasks ->Generate Scripts
3,点击next
4,选择Advanced(高级设置)
5,选择Schema and data
6,点击Next
7,完成