[英]scripting SQL table only from SQL Server Management Studio
How can I take a table with data in it to be executed? 如何获取一个包含数据的表以执行? I tried to do it from Create Table but the data is missing I could only import coloumns. 我尝试从创建表中执行此操作,但是缺少数据,只能导入列。
there is no such an option in SSMS
. SSMS
没有这样的选项。 You can just run this kind of simple SQL 您可以运行这种简单的SQL
SELECT *
INTO [MyNewTable]
FROM [MyOldTable]
Right Click on Database -> Tasks-> Generate Script
. 右键单击Database -> Tasks-> Generate Script
。 If this is SMS 2008 then in Advanced option you have option for Schema | 如果这是SMS 2008,则在“高级”选项中,您可以选择“架构” |“选项”。 Schema and Data | 架构和数据| Data only. 仅数据。 Choose Schema and Data. 选择架构和数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.