In SQL Server, how do I generate a CREATE TABLE statement for a given table?

前端 未结 16 2465
离开以前
离开以前 2020-11-22 11:34

I\'ve spent a good amount of time coming up with solution to this problem, so in the spirit of this post, I\'m posting it here, since I think it might be useful to others. <

16条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 11:47

    If you are using management studio and have the query analyzer window open you can drag the table name to the query analyzer window and ... bingo! you get the table script. I've not tried this in SQL2008

提交回复
热议问题