SQL Server命令来保存数据库脚本 [英] SQL server command to save the script of database
本文介绍了SQL Server命令来保存数据库脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
哪个SQL Server命令允许保存使用包含其中的数据创建数据库的脚本.
Which SQL server command allow to save the script that creates database with datas contained on it.
推荐答案
如果可以,请尝试备份和还原.
如果绝对必须创建脚本,请从 http://msdn.microsoft下载"SQL Server开发人员工具". com/en-us/data/tools.aspx [ ^ ]
该工具可以通过对新的空数据库运行模式比较"和数据比较"来生成所需的脚本.
希望这会有所帮助,
巴勃罗.
If you can, try backup and restore.
If you absolutely must create a script, download "SQL Server Developer Tools" from http://msdn.microsoft.com/en-us/data/tools.aspx[^]
The tool may generate the scripts you want, by running a ''schema compare'' and ''data compare'' against a fresh, empty database.
Hope this helps,
Pablo.
这篇关于SQL Server命令来保存数据库脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文