Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获取包含数据的表来执行?我试图从创建表中做到这一点,但数据丢失了我只能导入列。
中没有这样的选项SSMS。你可以运行这种简单的 SQL
SSMS
SELECT * INTO [MyNewTable] FROM [MyOldTable]
右键单击Database -> Tasks-> Generate Script。如果这是 SMS 2008,那么在 Advanced 选项中,您可以选择 Schema | 架构和数据 | 仅数据。选择架构和数据。
Database -> Tasks-> Generate Script