show Create commands for table in SQL Management Studio (2008)

筅森魡賤 提交于 2019-12-06 11:53:13

In Object Explorer, expand your server/database, expand Tables, right-click the table in question, and choose Script Table as > CREATE To > New Query Editor Window.

If you want to script multiple tables, you can turn on Object Explorer Details (F7 or from the View menu), highlight "Tables" on the left, then use Shift+ or Ctrl+ to select multiple tables in the right pane (just like you would select multiple files in Windows Explorer). Then you can do the same thing, right-click, Script Table as > ...

If you want to generate script for one table, right click a table and select "Script table as", you get all sorts of options including creating the create script of the table.

If you want to generate scripts for more than one table, you have option to generate for many at once. Just follow the wizard instructions.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!