SQL Server知识总结及常用命令
2012-08-09 17:51
253 查看
1、获得表或者数据库的ddl
有的时候想把某个表的ddl导出,方法如下:选中表,点击右键,选择“Script Table as”-》“Create To”,选中文件或者剪贴板,当然还有一些别的选项。
如果想把一个数据库里的表都导出,有一个便利的方法:
Right-click on the Database, select
then
configure to customise the output, but most of it is self explanatory.
If you are happy with the default options, you can do the whole job in a matter of seconds.
If you want to recreate the data in the database (as a series of INSERTS) I'd also recommend SSMS
Tools Pack (Free).
http://stackoverflow.com/questions/5771047/create-sql-script-that-create-database-and-tables
有的时候想把某个表的ddl导出,方法如下:选中表,点击右键,选择“Script Table as”-》“Create To”,选中文件或者剪贴板,当然还有一些别的选项。
如果想把一个数据库里的表都导出,有一个便利的方法:
Right-click on the Database, select
Tasksand
then
Generate Scripts, which will launch the Script Wizard. This allows you to generate a single script that can recreate the full database including table/indexes & constraints/stored procedures/functions/users/etc. There are a multitude of options that you can
configure to customise the output, but most of it is self explanatory.
If you are happy with the default options, you can do the whole job in a matter of seconds.
If you want to recreate the data in the database (as a series of INSERTS) I'd also recommend SSMS
Tools Pack (Free).
http://stackoverflow.com/questions/5771047/create-sql-script-that-create-database-and-tables
相关文章推荐
- SQL Server 常用命令总结
- linux常用命令,知识在于总结
- sql server 常用命令总结
- Nmap 常用命令总结(思维导图整理)
- SQL SERVER-常用命令2
- SQL Server 2008常用命令
- 常用项目Commons包知识总结
- mysql常用命令大全 mysql常用命令总结
- Java学习笔记(十三一)——Xml 常用知识总结
- linux 常用命令总结
- linux 常用命令总结
- kakfa的常用命令总结
- git常用命令总结
- (转)vim常用命令总结
- 【总结】Ubuntu常用安装和卸载软件命令
- Linux系统--常用压缩/解压缩命令总结
- linux 常用命令总结
- sql server管理常用命令
- Android进阶之路 - Git常用命令总结
- Linux常用命令总结